What does '&&' mean between two entries on a crontab.
eg 00 07 /usr/bin/ksh -c /job1.sh && /job2.sh
Does it mean start job2 after job1 completes
or does it mean start job1 and job2 simultaneously
Thanks
Matt
Does it mean start job2 after job1 completes
or does it mean start job1 and job2 simultaneously
Thanks
Matt
If A succeeds run B....
--Quote:> Does it mean start job2 after job1 completes
> or does it mean start job1 and job2 simultaneously
> Thanks
> Matt
> Does it mean start job2 after job1 completes
> or does it mean start job1 and job2 simultaneously
Executing
x && y
is equivalent to
if x
then
y
fi
but is much more compact.
--
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ I get my kicks above the wasteline, sunshine
\__/ The American, _Chess_
Product's Quake III Arena Tips / http://www.bosskey.net/
Tips and tricks from the absolute beginner to the Arena Master.
>> What does '&&' mean between two entries on a crontab.
>> eg 00 07 /usr/bin/ksh -c /job1.sh && /job2.sh
>>
>> Does it mean start job2 after job1 completes
>> or does it mean start job1 and job2 simultaneously
emf> The former, and additionally that job2 starts after job1 completes
emf> _successfully_ (returns error code zero).
The important thing to note is that the command line to be executed in a
cron job is not in any special "cron language".
It's just a shell script.
So, what you want to ask is, "what does the && operator do in Bourne
shell?"
Erik gave the answer, but so would your local shell man page, I daresay :).
--
---------------------------------------------------------------------------
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
---------------------------------------------------------------------------
These are my opinions---Nortel Networks takes no responsibility for them.
> x && y
> is equivalent to
> if x
> then
> y
> fi
> but is much more compact.
I expect this is POSIX-mandated behavior but I
don't have access to a copy of the standard.
> x && y
> is equivalent to
> if x
> then
> y
> fi
> but is much more compact.
I expect this is POSIX-mandated behavior but I
don't have access to a copy of the standard.
1. &&&&----Looking for a unix shell------&&&&&
I am looking for a unix shell to use to program c,html,perl,python,and a
little java
3. ppp && PPPoE && ADSL && net && buffer(s)
4. automounting DOS floppies? Also ZipPlus drivers?
5. 没有人用中文吗?
6. Running program on different date/time setting?
7. What the (Insert Explicitive) does this mean (doing a make && make install)
8. File locking in ISC 2.2 (SYSV R3)
9. &&&&&& SUGGESTION ??? &&&&&&&&
11. Is cron && or is cron || ?
13. PERL && mod_perl && FreeBSD && Apache