I am glad that you published this ditty. Been thinking about it but never got to do'n it. Now, I do not have to hurt my brain to think -- I can just copy (grin)
Later ...
Pogoplug Farming(tm) is Fun!
Categories: Pogoplug Hardware PogoPlug Development
Once you have enabled SSH access to your Pogoplug, you can enable scheduled jobs via cron.
Cron is a Linux system process that will execute a program at a preset time.
You can configure cron to run programs automatically for you every year, month, week, day, hour, minute, and many combinations of these.
Your Pogoplug runs a version of Busybox (to find out which version, just run "busybox" at the shell). Version 1.7 on the Pogoplug includes crond, the cron daemon. To find out if your Pogoplug has cron built in, try using the following command:
It should return something similar to crond --> busybox
You cannot run crond on your Pogoplug without the crontabs directory. To enable cron, you need to create the crontabs directory. The crond process expects this directory at /var/spool/cron/crontab, which does not exist.
In order to run scheduled tasks, you need to
Because /var is a link to /tmp/var, it is emptied every time the Pogoplug reboots. You'll need to create a startup script that mounts the drive, creates the directory link to your USB drive, and starts the crond process.
Assuming that you are mounting your Linux-formatted USB drive to /opt, do the following:
This puts you in 'vi' to edit the scheduled tasks for the user 'root'. Wikipedia has a nice entry on how to set up the crontab file: http://en.wikipedia.org/wiki/Cron#Predefined_scheduling_definitions
Upon reboot, however, the directory link disappears and the cron daemon will not start. To get the cron daemon to start automatically, create a startup script that contains the following two lines:
Again, this is assuming that your Linux-formatted USB drive is mounted as /opt. You may also want to search the articles and forums for methods to persistently mount devices at the same location.
I am glad that you published this ditty. Been thinking about it but never got to do'n it. Now, I do not have to hurt my brain to think -- I can just copy (grin)
Later ...
Pogoplug Farming(tm) is Fun!
Did you forget your password?
You can also log in using OpenID.