s-news
[Top] [All Lists]

Obtaining values to the OS in Windows / Linux

To: s-news@lists.biostat.wustl.edu
Subject: Obtaining values to the OS in Windows / Linux
From: Dennis Fisher <fisher@plessthan.com>
Date: Sat, 12 Jan 2008 09:39:53 -0800
Colleagues,

I would like to confirm which version of Splus is being called.  With R, the command-line command "R -- version" returns "R version 2.6.0 (2007-10-03)"  As far as I can tell, there is nothing directly comparable in Splus.

Once I open Splus, I can type: "version", which returns "Version 8.0.4  for Linux 2.4.21, 32-bit : 2007" and  "version$major" yields 8.

My question is - how can I get this information to the operating system.  I could write the info to a file; however, I prefer to pass the info in some way as an environment variable that I can access from the OS, e.g., %S_VERSION_MAJOR% in Windows or $S_VERSION_MAJOR in Linux.

Any ideas how this be accomplished (other than writing to a file)?


Dennis



Dennis Fisher MD

P < (The "P Less Than" Company)

Phone: 1-866-PLessThan (1-866-753-7784)

Fax: 1-415-564-2220

www.PLessThan.com


<Prev in Thread] Current Thread [Next in Thread>
  • Obtaining values to the OS in Windows / Linux, Dennis Fisher <=