Hi all,
If I want to execute multiple commands on the Before or the After job routines, for example if I want to execute 2 commands in the before job routine like 'delete a file from a directory' and also cat 2 or 3 files to make a single file, how can I do this.
thanks guyz
How to execute more commands in the Before/After Job routine
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Learn about operating system pipelining. In summary:
command2 is executed unconditionally after command1 finishes
command2 is executed only if command1 finishes successfully (with an exit status of 0)
command2 is executed only if command1 finishes unsuccessfully (with an exit status of other than 0)
Code: Select all
command1 ; command2
Code: Select all
command1 && command2
Code: Select all
command1 !! command2
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.