Problem with script not able to take parameters passed to it

when I pass any 2 parameters it always says:

Number of parameters passed: 1
and the job_name as x

Can some body help?

Try using

[ $# -gt 1 ]

the ">" redirects stdout

Thanks. I will try that and let you know. But how come it's taking it as X then.

Unfortunately, its still taking the paramter as x instead of the paramters being passed. Any suggestion?

Try debugging by changing the first line to

#!/usr/bin/ksh -x

Sorry Guys. It fixed the problem for me. Thanks.

Thank you very Much Porter. Thanks.

No problem. :slight_smile: