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: command line question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65896] Re: [mg65874] command line question
  • From: Christopher Purcell <christopherpurcell at mac.com>
  • Date: Fri, 21 Apr 2006 01:33:44 -0400 (EDT)
  • References: <200604200914.FAA05341@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

This has been asked before on mathgroup, and someone answered (in the  
affirmative) as follows:

log=ReadList["!"<>code,Record];

where code is a string giving the name of your DOS command file or  
executable. The symbol log will contain the output of your external  
command.  The exclamation mark prepended to the name of the command  
causes the operating system to run the command, then the ReadList  
captures the output (that would normally be written to a DOS "CMD"  
window).


christopherpurcell at mac.com



On Apr 20, 2006, at 6:14 AM, jason.s.turner at gmail.com wrote:

> Hi, I'm trying to execute Mathematica (5.2 on Windows) from the  
> command
> line via another program, but I'm having a hard time finding a way  
> that
> would just run a command, then exit.  Can this be done?
>
> Even if I could just read my argument from a file and write it to
> another would be fine...just as long as it gives the result, the  
> exits.
>
> Thanks,
>
> Jason
>


  • Prev by Date: Re: NDSolve with implicit function
  • Next by Date: Re: 3 transcendent equations, 2 unknown variables
  • Previous by thread: command line question
  • Next by thread: Re: command line question