Hi Wang,
You need to do what the shell does, all up the program directly, like this:
fork parent,
in the parent, reap the child
in the child, call exec() with the subprogram as the argument
Here's an example:
import os
program_executable = "/bin/ls"
parameters = ["/home/me/file1.txt", "/home/m
> input but the shell still expands out certain characters. I noticed
> with python2.4. How do I bypass the shell and hand arguments
directly
> to the program?
The first thing I'd do is create the command string before passing
it to popen - that way we can debug easier by seeing exactly what
is be
Hi tutors,
I've got an external program that I'm calling from python with
os.popen. The problem is that I need to pass this program an arbitrary
body of text. I've tried escaping characters before passing it as
input but the shell still expands out certain characters. I noticed
with python2.4. How