before-job subroutine execSH
Moderators: chulett, rschirm, roy
before-job subroutine execSH
Can we run two commands consecutively in one line ( in before-job subroutine for the execSH)?
Re: before-job subroutine execSH
Yes We can as mentioned below.
<First script> && <Second script>
<First script> && <Second script>
As noted, any kind of valid command separator can be used. That && one does a status check, the second command is only executed if the first one succeeds. A semi-colon would be unconditional.
Last edited by chulett on Wed May 04, 2011 3:17 pm, edited 1 time in total.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers