<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY>
<DIV>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I’m getting
some odd behavior from qsub. I’m trying to pass information in to my job
script from the qsub command line through the environment, with something
like<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office"
/><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
class=866490720-23042007> </SPAN>
qsub –v foo=bar my_job<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Works fine like that, but I need to
have a space tin the value string of the environment variable, eg,
<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
qsub –v foo=”bar bat” my_job<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">That, and any reasonable way that I
can think of escaping the quotes or space fails and sets $foo to some really
bizarre combinations of other environment variables. Can anyone explain
what is going on or how I should be doing this ? I’m running qsub version
2.1.7<SPAN class=866490720-23042007>. </SPAN></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
Thanks,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
Dave</SPAN></P></DIV></BODY></HTML>