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

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

Search the Archive

shell commands in notebooks

  • To: mathgroup at smc.vnet.net
  • Subject: [mg22129] shell commands in notebooks
  • From: Wolfgang Schadow <schadow at lin07.triumf.ca>
  • Date: Wed, 16 Feb 2000 02:34:46 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi

How can I execute shell commands from within a notebook? The book says

!date

or 

Run["date"]

This works fine in a terminal session, but not in a notebook. It seems
that
the commands are executed but the output is going somewhere else. To see
this try

Run["date > foo"]
!!foo

So what's happening with the output? (Mathematica 4.0 under Linux)

Thanks for your comments,
Wolfgang

=========================================================================
Wolfgang Schadow              Phone: +1-604-222-1047 ext. 6453 (office) 
TRIUMF                               +1-604-875-6066           (home)   
Theory Group                    FAX: +1-604-222-1074
4004 Wesbrook Mall
Vancouver, B.C. V6T 2A3       email: schadow at triumf.ca
Canada                        www  : http://www.triumf.ca/people/schadow
=========================================================================


  • Prev by Date: Problems with PolyGamma
  • Next by Date: Re: algorithm to generate 1/f noise
  • Previous by thread: Problems with PolyGamma
  • Next by thread: Re: shell commands in notebooks