<DIV>Peter,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am running scripts from DOS command prompt on Windows platform. I am using a JS engine called Rhino from mozilla that provides a javascript shell.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Is there a way to fetch environment variables from within the script?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks.<BR><BR><B><I>Peter Brunone &lt;peter@brunone.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<DIV><FONT face=Arial color=#800000 size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=875495604-11012005><FONT face=Arial color=#800000 size=2>I don't know of anything Javascript-specific for this.&nbsp; It usually depends on the environment where you are running the scripts; with most server platforms, there are environment variables that give you this kind of thing.&nbsp; Are you running this on a web server, and if so (or even&nbsp;if not)&nbsp;what layer/application is the javascript running in?</FONT></SPAN></DIV>
<DIV><SPAN class=875495604-11012005><FONT face=Arial color=#800000 size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> javascript-bounces@LaTech.edu [mailto:javascript-bounces@LaTech.edu] <B>On Behalf Of </B>visitus 04<BR><B>Sent:</B> Monday, January 10, 2005 10:44 PM<BR><B>To:</B> [JavaScript List]<BR><B>Subject:</B> RE: [Javascript] Determine operating system in javascript<BR><BR></FONT></DIV>
<DIV>It is the operating system of server. Javascript also runs on the server machine. Is there something like a sytem comman that can get OS name.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks<BR><BR><B><I>Peter Brunone &lt;peter@brunone.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<DIV><FONT face=Arial color=#800000 size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=175220702-11012005><FONT face=Arial color=#800000 size=2>The operating system of what?&nbsp; The client, or the server?</FONT></SPAN></DIV>
<DIV><SPAN class=175220702-11012005><FONT face=Arial color=#800000 size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=175220702-11012005>&nbsp;&nbsp;&nbsp; <FONT face=Arial color=#800000 size=2>If the client, then this will greatly depend on what type of client software is calling your application.&nbsp; If the server, then your server environment will determine how you proceed.</FONT></SPAN></DIV>
<DIV><SPAN class=175220702-11012005></SPAN>&nbsp;</DIV>
<DIV><SPAN class=175220702-11012005><FONT face=Arial color=#800000 size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> javascript-bounces@LaTech.edu <B>On Behalf Of </B>visitus 04<BR><BR></FONT></DIV>
<DIV>I am using javascript for a server side application (no browser involved). How can I check the type of operating system i.e. windows or unix flavor?</DIV>
<DIV><FONT face=Arial color=#800000 size=2></FONT>&nbsp;</DIV>
<DIV>Thanks</DIV></BLOCKQUOTE>_______________________________________________<BR>Javascript mailing list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE>
<P>__________________________________________________<BR>Do You Yahoo!?<BR>Tired of spam? Yahoo! Mail has the best spam protection around <BR>http://mail.yahoo.com </P></BLOCKQUOTE>_______________________________________________<BR>Javascript mailing list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE><p>
                <hr size=1>Do you Yahoo!?<br> 
Meet the <a href="http://my.yahoo.com">all-new My Yahoo!</a> – Try it today!