Milleniumlegend
IS-IT--Management
- Dec 16, 2003
- 135
Hi
I am running a SQL Script from Korn Shell Script. I am reading the parameters from a file and feeding each line as an input to this Korn shell script.
Parameter file
xxxx 111 111 111
yyyy 222 222 222.. etc
The Korn Shell script gets each line and feeds them to another korn shell command which updates the oracle database. I would like to know if there is a way to find out if the command is completed successfully before running the next command.
Say I have command updatesql.ksh xxxx 111 111 111
Is there a way I can find out this command executed successfully before running the next command for example
updatesql.ksh yyyy 222 222 222.
Thanks in advance.
I am running a SQL Script from Korn Shell Script. I am reading the parameters from a file and feeding each line as an input to this Korn shell script.
Parameter file
xxxx 111 111 111
yyyy 222 222 222.. etc
The Korn Shell script gets each line and feeds them to another korn shell command which updates the oracle database. I would like to know if there is a way to find out if the command is completed successfully before running the next command.
Say I have command updatesql.ksh xxxx 111 111 111
Is there a way I can find out this command executed successfully before running the next command for example
updatesql.ksh yyyy 222 222 222.
Thanks in advance.