shell script help

Hi ! all ,

I am getting a problem in running a shell script from cron . It is saying : test argument expected .
The shell script is running fine from the command prompt.

can you post more information like the part of the script where the problem is coming from. Also make sure that any variables declared in your script are exported.

I was forgotting the variables to be exported when using in cron. Thanks anyways.