Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*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 2006

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

Search the Archive

Re: Run option

  • To: mathgroup at smc.vnet.net
  • Subject: [mg71946] Re: Run option
  • From: "John Jowett" <John.Jowett at cern.ch>
  • Date: Tue, 5 Dec 2006 06:04:45 -0500 (EST)
  • Organization: CERN News
  • References: <el11sv$44a$1@smc.vnet.net>

Chris,
         It is often better to use ReadList than Run.  I always use this for 
running external "console" programs.   No command window appears and it also 
has the advantage that you can easily capture and manipulate the program's 
output stream.

Compare

Run["DIR"]

with

ReadList["!DIR",Record]

Note that you need to prefix the command string with "!".     You can also 
use Import which gives more ways of dealing with the output.

I have often wondered if there is any disadvantage to this (why is it not 
documented?) but have not found any.

John Jowett

"Chris Chiasson" <chris at chiasson.name> wrote in message 
news:el11sv$44a$1 at smc.vnet.net...
Hi, please add an option to Run that can disable the command window
that pops up when an external command is run (on Windows platforms).
The present behavior becomes quite annoying when multiple commands are
run successively in a batch job.

-- 
http://chris.chiasson.name/



  • Prev by Date: Re: Reduction of Radicals
  • Next by Date: how many times nestwhile repeats calculations?
  • Previous by thread: Run option
  • Next by thread: Re: Re: Run option