![]() |
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 |
| a cron job needs a perl script to execute | Exader | UNIX for Dummies Questions & Answers | 2 | 04-22-2008 03:45 PM |
| Cron job -- to execute at every first Sunday of every month | shanemcmahon | UNIX for Dummies Questions & Answers | 2 | 05-03-2007 11:34 PM |
| Need to execute 2 scripts, wait, execute 2 more wait, till end of file | halo98 | Shell Programming and Scripting | 1 | 08-01-2006 04:42 PM |
| How to execute scripts at logout? | pcsaji | Shell Programming and Scripting | 1 | 03-27-2006 06:01 AM |
| How can I execute TCL scripts in HP-UX | wilsonchan1000 | UNIX for Dummies Questions & Answers | 3 | 03-24-2003 11:32 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Thank you all for the help. Not all of the files in the script directory are scripts, so the first script would probably suit me better.
Please forgive my "newbie-ness", but let me just double check things: 1.) I have a text file scriptCron.txt with this in it: * 7 * * 5 /home/oracle/executeScripts.sh 2.) I have the executeScripts.sh file chmod'd to 777 and containing this: #!/bin/ksh cd /home/oracle/scripts list=`ls *.ksh` for script in $list do $script done 3.) All I need to do is "crontab scriptCron.txt" and then it should be added to the crontab list. And that should be it. Does the user have to be logged in for the CRON jobs to run or will it run automatically? Thanks again for the help. ![]() |
|
||||
|
No the user does not have to be logged in.
Also be aware that stdin and stdout do not exist, so if any of your scripts expect input that input should be pre-set in a file, and any output should be redirected to a file. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|