> From: Mark Hofmann <[EMAIL PROTECTED]>
> Subject: Re: Runtime.exec ()
> 
> Hi,
> 
> I tried the same thing some time ago.
> The problem is, exec works, for example if you try exec("ls") you wont get
> problems. However, running anything as a command that has a
> redirection of out-/ input in it fails.
> 
> I don't know why, but that's what I experienced.
> 
> Anybody knows why ???

Simply that redirection is part of the shell, not part of the OS.  You
must invoke a shell to see that behavior.

M.

Reply via email to