![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| default cron shell | dummy_9746 | Shell Programming and Scripting | 2 | 10-13-2008 03:25 PM |
| Cron execution of shell script | ashish.sharma | Shell Programming and Scripting | 3 | 09-08-2008 03:57 AM |
| Is it possible to have more than one Cron in shell script? | Yamini Thoppen | AIX | 4 | 12-17-2007 03:23 AM |
| Shell script & cron | deppy82 | Shell Programming and Scripting | 3 | 08-02-2007 02:00 PM |
| Shell + Oracle + Cron job | pathanjalireddy | Shell Programming and Scripting | 1 | 04-07-2005 03:07 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
which one is better Run by Cron or Shell
Dear Experts,
I have a script defined in Cron which runs every 1 minute. Code:
* * * * * /export/home/myscript.sh >/dev/null 2>&1 But after 1 minute cron will invoke another instance(process) execute the myscript. In that case do you think there is a probability to overlapping the instance and may create problem. If there is a chance for overlapping may be the below shellscript(run it in background) is okay which will run every 1 minute. Script will invoke different instant after every minute. Code:
#!/usr/bin/bash
while :
do
sleep 60 & pid=$!
/export/home/myscript.sh
wait $pid
done
//purple |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|