How to export Pschedule commands? Loop a few times an hour? (Solved)

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
User avatar
theroar84
Posts: 80
Joined: Sat May 08, 2021 4:21 pm
Location: US
Has thanked: 33 times
Been thanked: 4 times
Contact:

How to export Pschedule commands? Loop a few times an hour? (Solved)

Post by theroar84 »

I am having fun with xdotool and pschedule and automating some clicks on my pc.

As the scheduled scripts get cooler I would like to pass them to a few of my machines. Is there a way to export and import pSchedule commands?

I would also like to have a pSchedule command play 3x an hour. Say at x:14 X:30 and X:45 every hour.

The script just clicks the mouse on the top of a pair of browsers to keep them awake.

#!/bin/bash

xdotool mousemove 200 7
xdotool click --delay 2000 1
xdotool mousemove 1100 7
xdotool click --delay 2000 1
xdotool mousemove 250 7
xdotool click --delay 2000 1
xdotool mousemove 1150 7
xdotool click --delay 2000 1

Running Fossa64 9.5 Multiple PC's Frugal Installs on EXT4 hard drives. Multiple Frugals per PC too.

williwaw
Posts: 1868
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 167 times
Been thanked: 340 times

Re: Export Pschedule commands? Loop a few times an hour?

Post by williwaw »

As the scheduled scripts get cooler I would like to pass them to a few of my machines. Is there a way to export and import pSchedule commands?

https://oldforum.puppylinux.com/viewtopic.php?t=22166

https://linuxhandbook.com/crontab/

User avatar
theroar84
Posts: 80
Joined: Sat May 08, 2021 4:21 pm
Location: US
Has thanked: 33 times
Been thanked: 4 times
Contact:

Re: Export Pschedule commands? Loop a few times an hour?

Post by theroar84 »

Thank you so much! On page 8 I found the best info.

pSchedule stores all our jobs in a file root at this location. /var/local/cron (how do I put a sim link on a usb drive so I can click and get to that folder instantly?)

At the site https://crontab.guru/ I was able to create a command that runs every 15 minutes when the computer is fired up.

Super slick */15 * * * *

Thanks again for all the tips!

Running Fossa64 9.5 Multiple PC's Frugal Installs on EXT4 hard drives. Multiple Frugals per PC too.

Post Reply

Return to “Beginners Help”