Nedi, First the necessary cron line for your application is:
5 2 * * * curl "http://192.168.200.103" -d"submit=Reboot" >/dev/null 2>&1 At 2:05 each morning the command will be executed. (adjust the time to you needs) Next to make sure the crontab file is stored on /mnt/kd do the following from the CLI: $ mkdir -p /mnt/kd/crontabs $ touch /mnt/kd/crontabs/root $ service crond stop $ service crond init Finally, to add the cron line from above... CLI method: (Note: you must be familiar with the "vi" editor to use this) $ crontab -e (add the cron line from above) :wq <-- to write and quit "vi" - or - Web Interface method: Edit tab -> "crontabs/root" >> Open file (add the cron line from above) Select "Reload Cron for root" _x_ Confirm and click {Reload/Restart} There will be a log in syslog for each cron execution. Lonnie On Mar 13, 2012, at 6:30 AM, Nedi wrote: > Hi, > > What is the best way to enter a cron job into the system that will be resatrt > my GSM Gateway every day with Curl > > curl "http://192.168.200.103" -d"submit=Reboot“ > > Best Regards > nedi ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.