linux - Call 2 shell from a shell father and not exit if a shell child contain an "exit command" -
hi have 3 shell script:
first.sh
#! /bin/ksh echo "prova" . ./second.sh echo "ho lanciato il secondo" . ./third.sh echo "ho lanciato il terzo"
second.sh is:
#! /bin/ksh echo "sono nel secondo script" exit 9
i can't edit second.sh. how ignore exit 9 , continue third.sh?
thanks
don't use . ./second.sh
; instead, run ./second.sh
.
Comments
Post a Comment