quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Treadway" <se...@superchannel.org>
Subject RE: os.system() doesn't work
Date Wed, 17 Dec 2003 21:15:14 GMT
When running under the different process, system commands may have a
different environment.  Your PATH environment variable is used by
os.system to find programs.  Try referencing ssh.exe by its full name
"/usr/bin/ssh.exe" for example, or "c:\path\to\ssh.exe".


-----Original Message-----
From: Alberto Sanchez Albarracin [mailto:aalbarracindev@hotmail.com] 
Sent: Wednesday, December 17, 2003 10:09 PM
To: python-dev@httpd.apache.org
Subject: os.system() doesn't work

Anybody can help me with this, i'm doing the following command:
os.system("ssh.exe -i c:\etc\ssh_host_key -l root (cp 
/usr/tmp/test /usr/tmp/test1)")
It seems to do nothing.
I did the ssh.exe in command line and it has worked
I did the same line of code in a .py program out of mod_python and it
worked too
But when i tried it under mod_python it doesn't do anything, no errors
no warnings either.
The user which apache service is started with is the same as the one i
logged in so by command line and py under mod_python use the same user,
it shouldn't be an authenticated trouble because it works in command
Thanks in advance...

Add photos to your e-mail with MSN 8. Get 2 months FREE*. 

View raw message