Re: system/system_exec problem
- Posted by irvm at ellijay.com Jun 17, 2003
- 487 views
On Tuesday 17 June 2003 12:29 pm, Igor wrote: > Doc says "system_exec() doesn't allow the use of command-line > redirection in the command string st". You are correct, that is what the doc say. However, they lie, because when I run -- Program 2 #!/home/irv/euphoria/bin/exu object x x = system_exec("ls > DIRECTORY",0) from an x-term, or from the command line, it runs just fine, and produces the output file 'DIRECTORY', which contains the names of the files as produced by ls. Only when clicking on the program's icon does it hang. Just to see if redirection could be part of the problem, I tried the following: -- Program 3 #!/home/irv/euphoria/bin/exu object x x = system_exec("mv FILEA FILEB",0) This does not use redirection, but it also fails when run from the icon, and succeeds when run from an x-term. Very puzzling. Regards, Irv