Python to call commands, e.g. "find , perl scripts , nmap , and others" is this possible?

Emile van Sebille emile at fenx.com
Thu Jun 1 13:56:40 EDT 2000


Jim,

Take a look at os.popen, as in:

import os
mylist = os.popen('locate myname').readlines()
for eachfile in mylist: do something with eachfile

HTH,

Emile van Sebille
emile at fenx.com
-------------------


----- Original Message ----- 
From: Jim 
To: python-list at python.org 
Sent: Thursday, June 01, 2000 9:44 AM
Subject: Python to call commands, e.g. "find , perl scripts , nmap , and others" is this possible?


  
  
Dear list, 
I'm new to Python, and I'm sorry if I'm asking about anything that has been 
already discussed. 

I would like to use Python to call commands, e.g. "find , perl scripts  , nmap , and others" is this possible? 

I do not need GUI. All I need is to link the out put and work with it. Is perl or shell scripts my only 
answer? 

jim 

-- 
Proprietary & Confidential.  The information transmitted is intended only for the person or entity to whom it is addressed and may
contain confidential and/or privileged material.  Any review, retransmission, dissemination, or other use of, or taking of any
action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.  If you received this in error, please
contact the sender and delete the material from any computer.
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20000601/a781f954/attachment.html>


More information about the Python-list mailing list