![]() |
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 Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help in automating dates in ksh script | italia1971luca | Shell Programming and Scripting | 1 | 06-04-2008 06:29 AM |
| Help with script - run by cron | richo king | Shell Programming and Scripting | 2 | 03-05-2008 08:36 PM |
| Automating Logform Command in a script | TheDoc | Shell Programming and Scripting | 2 | 07-03-2006 08:14 AM |
| automating sftp script | Rajeshsu | Shell Programming and Scripting | 1 | 07-27-2005 04:06 PM |
| 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 |
|
||||
|
cron ? automating a script
Hi all.
basically i need to run a script every 30 minutes. my script is simply an error report: errpt thats it, is there anyway to make this happen every 30 minutes without having to type errpt in, the script will get bigger as i add more things to do but just need to know how to automate it. Also dont know anything about cron thanks guys. |
|
||||
|
Here is a cron entry that would probably work:
Code:
0,30 * * * * /mydir/errpt 1. You may not have permission to run cron jobs, so cron.allow would need your account name adding. (And easy way to check is to issue the command "crontab -e" and see if it errors or works.) 2. Your script may not work depending upon the scripting language you've used and OS you're running on (ie. Solaris comes with only Bourne shell support in cron). 3. Your script may assume environment variables that work when you run it interactively, but aren't there when it's run via cron. 4. Your OS (bloomin' Solaris again!) may be configured to only allow a limited number of concurrent cron jobs, so other schedules may impact yours. Have fun! Last edited by prowla; 12-19-2007 at 05:27 PM.. Reason: amendment |
|
||||
|
I've just checked on Solaris 9 on SPARC, it happily runs cron jobs using sh, ksh or csh. Not sure what you were implying.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|