<font face="arial" size="2"><br />&nbsp;&nbsp;&nbsp;I don't know for sure, but that sounds like a question for the Rhino docs.<br /><br /></font><font face="Tahoma, Arial, Sans-Serif" size="2"><b><br />From</b>: visitus 04 <a href="mailto:visitus_04@yahoo.com">visitus_04@yahoo.com</a><br /></font><br /> <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"> <div><font face="Arial" color="#800000" size="2"></font>&nbsp;</div> <div>&nbsp;&nbsp;&nbsp;&nbsp;<span class="875495604"><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"><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" 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 /><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"> <div><font face="Arial" color="#800000" size="2"></font>&nbsp;</div> <div>&nbsp;&nbsp;&nbsp;&nbsp;<span class="175220702"><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"><font face="Arial" color="#800000" size="2"></font></span>&nbsp;</div> <div><span class="175220702">&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"></span>&nbsp;</div> <div><span class="175220702"><font face="Arial" color="#800000" size="2"></font></span>&nbsp;</div> <blockquote style="MARGIN-RIGHT: 0px"> <div></div> <div class="OutlookMessageHeader" lang="en" 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></blockquote></blockquote></blockquote>