[Tutor] command line arguements

Kirk Bailey deliberatus@my995internet.com
Fri, 23 Nov 2001 01:51:56 -0500


OK, here ya go. Slightly deeper sorcery time.

A script is to be fed data, which is an incoming email. This is piped to
it in the time honored tradition by a declaration in the aliases file,
such as:

mylist:"|/pathtoprogram/programname mylist" 

The data arrives at the program through <stdin> and is read as a normal
input if I have this right. I also want it to read the command line
arguement (in this case the word mylist which follows the program name,
and is handed to it by the opsys as a command line arguement).

how does one tell a python program to pay attention to command line
data? I can do this in a shell script, and a few other languages, but do
not yet comprehend it in python.



-- 
Respectfully,
             -Kirk D Bailey (C)2001
              Addme! icq #27840081
end
      My Sites:
      http://www.howlermonkey.net/ - free REAL email! list service soon!
      http://www.sacredelectron.org/ - Rants! Spleenvents!
      http://www.minorfish.org/ - The list server for some of us!

Message of the week:
R5L9W SDPQW UVN7V RUBWB I6HFP WVCUT VWRVL
W7812 LVH8V JBVK2 3CEJB TO8P3 FHFHG H7BFM
QID68 6DN6F 6M486 YQNCF JECQP 86CNP 86CTT
JIQPF ZPVGV DLFST DBUDI UIFNC BTUBS ETBOE
BTTGV DLUIF NSFBM IBSE!