|
[Date Index]
[Thread Index]
[Author Index]
Re: Run, RunThrough on OSX?
- To: mathgroup at smc.vnet.net
- Subject: [mg53340] Re: Run, RunThrough on OSX?
- From: Christopher Purcell <chris.purcell at drdc-rddc.gc.ca>
- Date: Thu, 6 Jan 2005 22:00:41 -0500 (EST)
- References: <200501060752.CAA28691@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Run is returning a status code and not the date. If you pipe the output
of data to a file
and read it, you will get your date. I recall an example in the
newsgroup archives where
this is done in a one-liner but here is something that will get you
started.
log=$Failed;
status=Run["date>junk.txt"];
If[status==0,
(log=ReadList["junk.txt",Record];
DeleteFile["junk.txt"];),Null];
log
Christopher Purcell
DRDC-Atlantic, 9 Grove St., PO Box 1012,
Dartmouth NS B2Y 3Z7 Canada
christopherpurcell at mac.com
On Jan 6, 2005, at 3:52 AM, m. r. schaferkotter wrote:
> greetings:
>
> Run and RunThrough on OSX don/t seem to work as indicated in the Help
> Browser or the Mathematica Book.
>
> Run["date"]
>
> -1
>
> instead of the date.
>
> on Solaris the functionality is there:
>
> In[1]:= Run["date"]
> Wed Jan 5 20:42:13 CST 2005
>
>
> also the shell escape doesn/t seem to work.
>
> can anyone explain why this should be the case?
>
> m. r.
>
Dr Christopher Purcell
Sensors & Actuators Group
DRDC-Atlantic, 9 Grove St., PO Box 1012,
Dartmouth NS B2Y 3Z7 Canada
Work E-mail chris.purcell at drdc-rddc.gc.ca
Work Tel 902-426-3100 x389 Fax 902-426-9654
Home Tel 902-464-9248
Home E-mail christopherpurcell at mac.com
AIM/iChatAV: cffrc
Prev by Date:
Re: DisplayTogether has stopped working
Next by Date:
Re: Run, RunThrough on OSX?
Previous by thread:
Re: Run, RunThrough on OSX?
Next by thread:
Re: Re: Run, RunThrough on OSX?
|