MathGroup Archive 2000

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

Search the Archive

Re: External programs, notebook interface

  • To: mathgroup at
  • Subject: [mg24543] Re: External programs, notebook interface
  • From: "Dale Horton" <daleh at>
  • Date: Mon, 24 Jul 2000 03:04:22 -0400 (EDT)
  • Organization: Wolfram Research, Inc.
  • References: <8l0po9$>
  • Sender: owner-wri-mathgroup at

The syntax error is because the output of date is not a valid expression.
Instead, you want to put the output into a string. ReadList can do this

ReadList["!date", Record]


"Philip C Mendelsohn" <mend0070 at> wrote in message
news:8l0po9$ds2 at
> Brief question:
> Using the text based interface, !ls, or !date or other various Unix
> shell-escapes work just fine.  In the notebook FrontEnd, however,
> they do not.
> This is the output I get:
> Syntax::sntx:
>    Syntax error in or before "Thu Jul 13 10:03:59 CDT 2000".
>                                             ^
>      (line 1 of "!date")
> If I run various configurations of Run["command"], it works but doesn't
> echo the output (which is I as I would expect.)
> RunThrough["command", expr] doesn't work the way I want either.
> I know that I've done this before -- at one point I just lived in M
> and scarcely even changed to a shell window.  Now, I fear I forgot
> how, or M is trying to pull a "Gaslight" on me.
> Suggestions?
> Thanks,
> Phil Mendelsohn
> --
> Lottery:    a tax on people who are bad at math

  • Prev by Date: Confluent hypergeometric functions of matrix argument
  • Next by Date: Re: Display
  • Previous by thread: External programs, notebook interface
  • Next by thread: Re: External programs, notebook interface