09-30-2008
making a infinite loop that sleeps for 4hs and reuns other script is not a solution. the supervisor script might just die and you will end up at the begining
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
How can i schedule a job, i.e a program named p found at path a/b/c, to run at a time T everyday?
Thanks (5 Replies)
Discussion started by: ashvik
5 Replies
2. UNIX for Advanced & Expert Users
Hi I am using at job in my SHELL scripts..
When it prompts to enter the time for at job..I used to press enter(return) button..
After that its running the job properly, but its showing the below error
UX:at: ERROR: Bad date specification..
Can some one suggest how to remove that error.
... (2 Replies)
Discussion started by: grajesh_955
2 Replies
3. Shell Programming and Scripting
I would like to execute my script at 17.30 and 23.00 using crontab, could anybody help me out!!
Thanks in Advance!! (1 Reply)
Discussion started by: jatanig
1 Replies
4. UNIX for Dummies Questions & Answers
Hi I m using a machine for VMWARE setup.
machine details.
#uname -a
VMkernel testmachine.test.com 3.5.0 #1 SMP Release build-110271 Aug 12 2008 19:36:55 i686 unknown
the problem is i m not able to schedule a job using crontab as
crontab is not found on the machine.
~ # crontab -e... (5 Replies)
Discussion started by: pinga123
5 Replies
5. AIX
how to schedule a job in aix, pls explain with cmd (1 Reply)
Discussion started by: udtyuvaraj
1 Replies
6. Shell Programming and Scripting
Hi all,
I am new to cron jobs..
i wanted to schedule a cron job that wil send a mail to me at 3:00PM on 10th August ie is on Wednesday.
0 15 10 8 3 echo "message from UNIX here"|mail -s "your subject here" user@user.com
However this was not executed...
Can anyone please... (0 Replies)
Discussion started by: ch33ry
0 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I new to cron job...
I need to schedule a job that runs on a particular day at a specific time
say for example need to send a test mail at around 2:30PM on wed 10th August
i have used the below syntax, but the job was not executed.
30 14 * * * echo "message from UNIX... (3 Replies)
Discussion started by: ch33ry
3 Replies
8. Shell Programming and Scripting
Hi,
I have a spcific box called abc in autosys and below that there are 2 jobs.
my requirement is to run the abc box only on monday and rest of the day the rest of the jobs should be in success status..
---------- Post updated at 03:11 PM ---------- Previous update was at 02:45 PM ----------... (4 Replies)
Discussion started by: j_panky
4 Replies
9. Shell Programming and Scripting
Hi All,
Is there any way (any utility) to schedule a job to run once in a week on RedHat Linux ?
Note- Do not using Crontab.
Thanks
Pravin (1 Reply)
Discussion started by: pravin27
1 Replies
10. Shell Programming and Scripting
how to write a code using shell scripting to refire a back up job if it fails with an error code of 196? (7 Replies)
Discussion started by: Pawan Ramnani
7 Replies
while(n) Tcl Built-In Commands while(n)
__________________________________________________________________________________________________________________________________________________
NAME
while - Execute script repeatedly as long as a condition is met
SYNOPSIS
while test body
_________________________________________________________________
DESCRIPTION
The while command evaluates test as an expression (in the same way that expr evaluates its argument). The value of the expression must a
proper boolean value; if it is a true value then body is executed by passing it to the Tcl interpreter. Once body has been executed then
test is evaluated again, and the process repeats until eventually test evaluates to a false boolean value. Continue commands may be exe-
cuted inside body to terminate the current iteration of the loop, and break commands may be executed inside body to cause immediate termi-
nation of the while command. The while command always returns an empty string.
Note: test should almost always be enclosed in braces. If not, variable substitutions will be made before the while command starts execut-
ing, which means that variable changes made by the loop body will not be considered in the expression. This is likely to result in an
infinite loop. If test is enclosed in braces, variable substitutions are delayed until the expression is evaluated (before each loop iter-
ation), so changes in the variables will be visible. For an example, try the following script with and without the braces around $x<10:
set x 0
while {$x<10} {
puts "x is $x"
incr x
}
SEE ALSO
break(n), continue(n), for(n), foreach(n)
KEYWORDS
boolean value, loop, test, while
Tcl while(n)