![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| script wont run from cron job | mgmcelwee | Shell Programming and Scripting | 1 | 09-11-2008 05:10 PM |
| Help with script - run by cron | richo king | Shell Programming and Scripting | 2 | 03-05-2008 08:36 PM |
| Cron job for Perl script | man | UNIX for Advanced & Expert Users | 3 | 07-26-2007 01:20 PM |
| Can run script Manually, but not through Cron? | MadHatter | Shell Programming and Scripting | 4 | 10-19-2005 10:08 AM |
| Cron Script Q | doublek321 | Shell Programming and Scripting | 2 | 07-06-2004 09:35 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Need help with a script run by a cron job.
Hi, new to this forum and not sure if this is the right place to post. I'm new to cron jobs and scripts, and I need some help with a script to be used with a cron job. I already have a bot set up at a certain website address and need a script that the cron job will load every day that tells it to visit the website with the bot set up. Any help is very appreciated.
Thanks. |
|
|||||
|
Generally you can use "curl" or "wget" to simply visit websites. If you cannot install these, it's possible to use a simple script implemented in tcl, perl or python. If you want your job to run twice a day, pick a set of hours. Here, I chose 10 minutes after 6am and 7pm. Use "crontab -e" to edit the cron file and insert the following line.
10 6,19 * * * wget --spider -nv http://my.url.com/cgi-bin/mybot >/dev/null Errors will be emailed to your user account. If you don't want this, follow up and we'll see what we can do. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|