MathGroup Archive 2000

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

Search the Archive

shell commands in notebooks


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