Passing parameter in background shell

Hi All,

i've a shell script, where it will run in the background, i'm using.

 system("sh $Home/S_SCRIPT/cck.sh $shell_dum_file &");

i'm passing a parameter $shel_dum_file to the background process.
In shell script , i'm using.

#!/bin/sh
FILE=$1
echo "FILE NAME- $FILE"

this shell process is running in background, and i'm not getting the parameter passed.
in output, i'm getting blank.

Please help,

regards,
asak

  1. Where do you run this command in command line or through a script.
  2. Im aware that system command is used in awk but not sure in shell script. Where do you use this system command?
  3. Or can you just run as..
sh $Home/S_SCRIPT/cck.sh "$shell_dum_file" &

Hi michael,

i'm running this from a script.. i got the passed parameter from shell, as the script was not sendng the required variable to shell. It;s working fine now. Thanks for your concern.

Thanks once again.

Regards,
asak