Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: RunThrough on Windows 2000

  • To: mathgroup at smc.vnet.net
  • Subject: [mg45353] Re: RunThrough on Windows 2000
  • From: drbob at bigfoot.com (Bobby R. Treat)
  • Date: Fri, 2 Jan 2004 04:23:42 -0500 (EST)
  • References: <bt0v36$hgt$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

The UNIX command "cat" expects an input file name as its argument.

The RunThrough command puts its second argument in the default input
stream, and opens "cat" on that input stream.

Bobby

Harold.Noffke at wpafb.af.mil (Harold Noffke) wrote in message news:<bt0v36$hgt$1 at smc.vnet.net>...
> Group:
> 
> On my Windows 2000 system, I have a 1991 MS-DOS application called
> "MKS Toolkit".  It has a Unix "cat" command.  Here's some interesting
> results with Mathematica 5.0.
> 
> If I use the example in the Mathematica Book, I get ...
> 
> In[60]:=
> RunThrough ["cat", 123]
> Out[60]=
> 123
> 
> after a brief flash of the Mathematica-launched DOS box.
> 
> If I embellish this example a bit, I get ...
> 
> In[61]:=
> RunThrough ["cat", 123+456]
> Out[61]=
> 579
> 
> These are not the results I expected, as when this 1991 "cat" is typed
> directly into the MKS DOS box I get ...
> 
> C:\MKS> cat 123
> cat: 123: no such file or directory
> 
> and ...
> 
> C:\MKS> cat 123+456
> cat: 123+456: no such file or directory
> 
> I'm baffled.  Does this make sense to anyone?
> 
> Harold


  • Prev by Date: RE: Windows ME fonts
  • Next by Date: Re: Function interpolation
  • Previous by thread: Re: RunThrough on Windows 2000
  • Next by thread: Re: Printing "Alias" Definitions