I have prepared one script. we have to pass two possitional parameters to the script. What I want to do is if the parameters are not passed then i dont want the script to start the process...
For ex:
$ ./a.sh parm1 parm2
#Here, it can start the process as we passed 2 parameters..
$
$ ./a.sh parm1 (or) $ ./a.sh
#Here, it should not start the script process as we are not passed sufficient parameters..
thank you vm fo your reply..
but the script process will start here also to check the no. of parameters..
do we have any other way to not allow the script to run without parameters?
You don't want to start the process (the script) at all if it doesn't have the correct number of arguments? --> yes Scott, i dont want to start the process of the script without parameters...
Yes Scottn, even process started also, it'll immediately exit out from the script if we dont pass complete parameters.. I guess, it's enough for me.. let me give a try...