[fpc-pascal] exec with many params

Marco van de Voort marcov at stack.nl
Fri Sep 2 15:51:11 CEST 2005


> in linux I can't use the exec for executing a program with more than one
> parameter.

"the exce" ? Which exec? Can you provide an example?

> I tried to supply more than a parameter separeted with whitespace, but
> it's not reliable, since the program is treating it as just one parameter
> 
> so I can't pass options to programs, such as:
> ls -l .*

sysutils.executeprocess ('/bin/ls',['-l','.*']);

fpexecl is also possible, but why not use relative OS independant functionality ?



More information about the fpc-pascal mailing list