Hello, I'm trying to spawn another python program and have to pass it a few arguments...
var1="12"
var2="1"
print "spawn prog"
pid=os.spawnv(os.P_NOWAIT, '/user/bin/python', ('python, 'myprog.py', var1, var2))
print "prog spawned"
When I execute this program all I see is:
spawn prog
prog spawned
Can you help me with this problem. I'm running this on linux.
Thanks from a novice.
Dan
var1="12"
var2="1"
print "spawn prog"
pid=os.spawnv(os.P_NOWAIT, '/user/bin/python', ('python, 'myprog.py', var1, var2))
print "prog spawned"
When I execute this program all I see is:
spawn prog
prog spawned
Can you help me with this problem. I'm running this on linux.
Thanks from a novice.
Dan