[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] pexec



On Mon, 2010-12-20 at 19:34 +0200, Peter Slegg wrote:
> I have just discovered that while pexec with a string of
> "/bin/ls" works, "/bin/ls -a" does not. The space seems to
> stop it doing anything.
> 
> Is there a way to make pexec read the string as a single command ?

Pexec expects the path to the program and the command line to be in
different parameters. You need to split your string into one command and
one argument string.

Jo Even