I'm new to unix scripting.How can i call a script from another script.
I have a.ksh and b.ksh .I have to call b.ksh from a.ksh after it is successfully exceuted.
I tried using
#!/bin/ksh -x in a.ksh and at the end i have used /path/b.ksh
My problem is it is executing only a.ksh.it is not going to b.ksh
Can anyone suggest some solution for this
Thanks !
I have tried using that but it is not working because
I have to pass a run time variable for b.ksh.i'm passing same variable for a.ksh also.How can i pass the same variable for b.ksh
the code is too lengthy.
In short a.ksh is for running a datastage job.
so for executing the job the command i'll give is
./a.ksh dev(environment) jobname.
So now in a.ksh only i'm trying to call b.ksh .this is to ftp the file.for running this script the command should be ./b.ksh dev(environment).