On 17 October 2012 20:28, Betty Ulis <[email protected]> wrote: > Hi, > > > > The output from my submitted job for PATH is as the PATH was defined by > .cshrc, without any changes I have done for current shell. I suspect the problem is caused by csh executing .cshrc before your commands overriding whatever grid engine sets. One solution would be to modify your .cshrc to set the PATH to the value of another variable if present.
William > > > > 10x > > Betty > > > > > > From: Reuti [mailto:[email protected]] > Sent: Wednesday, October 17, 2012 9:09 PM > > > To: Betty Ulis > Cc: [email protected] > Subject: Re: [SGE-discuss] qrsh: export PATH variable > > > > Hi, > > > > Am 17.10.2012 um 21:02 schrieb Betty Ulis: > > > > Hi Reuti, > > > > Thank you for your answer. > > The option –cwd is only add current directory to the execution context PATH > variable. > > And I want the execution context PATH variable to be exactly the same as > submission context PATH. > > > > Argh - sorry, I read it too fast. To get the sge_o_path the `qrsh -v PATH > foobar.sh` you mentioned should do it already. It's just prepended by the > $TMPDIR. Which output do you get from your submitted job for $PATH? > > > > -- Reuti > > > > > > 10x > > > > > > From: Reuti [mailto:[email protected]] > Sent: Wednesday, October 17, 2012 8:56 PM > To: Betty Ulis > Cc: [email protected] > Subject: Re: [SGE-discuss] qrsh: export PATH variable > > > > Hi, > > > > Am 17.10.2012 um 20:48 schrieb Betty Ulis: > > > > > Dear SGE users, > > > > Please help me with the next question: > > > > How can I export PATH variable of the job submission context to the > execution context when using qrsh. > > > > I tried options “-V”, “-v PATH” and “-v PATH=$PATH”, but it doesn’t help. > > > > So it's about `qrsh` including a command. In this case the option -cwd > should do it. > > > > -- Reuti > > > > > > > So, how can I configure qrsh (from the command line, without changing the > submitted job code) to use SGE_O_PATH as PATH? > > > > Regards, > > Betty Ulis > > _______________________________________________ > SGE-discuss mailing list > [email protected] > https://arc.liv.ac.uk/mailman/listinfo/sge-discuss > > > > _______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users
