Re: Re: Run, RunThrough on OSX?
- To: mathgroup at smc.vnet.net
 - Subject: [mg53350] Re: [mg53340] Re: Run, RunThrough on OSX?
 - From: DrBob <drbob at bigfoot.com>
 - Date: Fri, 7 Jan 2005 01:18:50 -0500 (EST)
 - References: <200501060752.CAA28691@smc.vnet.net> <200501070300.WAA10780@smc.vnet.net>
 - Reply-to: drbob at bigfoot.com
 - Sender: owner-wri-mathgroup at wolfram.com
 
Why not this?
Date[]
{2005,1,6,23,59,42.7903763}
Bobby
On Thu, 6 Jan 2005 22:00:41 -0500 (EST), Christopher Purcell <chris.purcell at drdc-rddc.gc.ca> wrote:
> 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
>
>
>
>
-- 
DrBob at bigfoot.com
www.eclecticdreams.net
- Follow-Ups:
- Re: Re: Re:  Run, RunThrough on OSX?
- From: Christopher Purcell <christopherpurcell@mac.com>
 
 
 - Re: Re: Re:  Run, RunThrough on OSX?
 
- References:
- Run, RunThrough on OSX?
- From: "m. r. schaferkotter" <schaferk@bellsouth.net>
 
 - Re:  Run, RunThrough on OSX?
- From: Christopher Purcell <chris.purcell@drdc-rddc.gc.ca>
 
 
 - Run, RunThrough on OSX?