GIDForums  

Go Back   GIDForums > Computer Programming Forums > Python Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 27-May-2007, 13:43
battu battu is offline
New Member
 
Join Date: May 2007
Posts: 1
battu is on a distinguished road

os.system() problem in mod_python


in 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  
Old 12-Jul-2007, 20:25
crystalattice's Avatar
crystalattice crystalattice is offline
Aspiring author
 
Join Date: Apr 2004
Location: Japan (again)
Posts: 1,635
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: os.system() problem in mod_python


I 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 GIDBlogNot selected for officer school by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 08:33.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.