![]() |
|
#1
|
|||
|
|||
os.system() problem in mod_pythonin my project i have to nmap an ip give and in this code
cmd = "nmap -O " + myip + "> /usr/local/apache2/htdocs/test/temp/tmp.txt" os.system(cmd) i scan for the os on the remote system. Iran this code in python it is working but when i run this in mod_python through apache it is not showing any errors but not giving the correct result. but the same cmd when changed like this , cmd = "nmap -sP " + myip + "> /usr/local/apache2/htdocs/test/temp/tmp.txt" os.system(cmd) which is nothing but a ping scan of the ip It is working properly in mod_python also. but i want to detect the os . please help me. |
|||
|
#2
|
||||
|
||||
Re: os.system() problem in mod_pythonI didn't see this post until just now. Are you still having problems or did you get it resolved?
__________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Buffer problem with CD-RWriter | KieranC | Computer Software Forum - Windows | 2 | 07-Jan-2006 01:45 |
| Graphic problem in Unreal Tournament 2004 | zerox | Computer Software Forum - Games | 10 | 09-Oct-2005 12:31 |
| Runtime Problem involving "printf" in C Program | supamakia | C Programming Language | 2 | 09-Oct-2005 10:09 |
| a significant problem after installing Xp | mohammad | Computer Software Forum - Windows | 10 | 09-Aug-2005 07:03 |
| String problem | vaha | C Programming Language | 3 | 24-May-2005 18:21 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The