perlusr has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to pass the $EUID to a cshell script thats called from my perl script. ITs seems like its dropping the $EUID as it starts executing the called cshell script.
This cshell script fails to be executed as "jjack"my $EUID = getpwnam(jjack); system("sleep 60"); #<< Executes it right as jjack system("/bin/csh -x ./submitjobs.csh");# This does not work. cshell script ./submitjobs.csh ------------------------------ #!/bin/csh source /net/watusi/usr1/lsf8.0/conf/cshrc.lsf echo $uid bsub -q lxpt64_2cpu -o /dev/null -e /dev/null sleep 10
Any one knows what I could do ? I need to execute several thousand LSF jobs as the EUID that I am parsing from a log file.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing $EUID to cshell script through system command in Perl
by cdarke (Prior) on Jul 19, 2011 at 10:13 UTC | |
by Anonymous Monk on Jul 19, 2011 at 19:23 UTC |