[Tutor] pass argument into running program *outside* of program

Alan Gauld alan.gauld at btinternet.com
Fri Aug 22 02:38:53 CEST 2008


"James" <jtp at nc.rr.com> wrote

> I have a program that I am writing that will be shared amongst
> multiple users. This program sits in the background as a daemon and
> 'does' things (consider it a black box). I want users to be able to
> SSH into the Linux box that is running the code and then do 
> something
> like this:
>
> $ program.py addMe <username> <var2>

create the server with a socket that listens for clients on a port
create a client that talks to the socket via that port.

See the example in my tutor in the network programming topic.

HTH,


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 




More information about the Tutor mailing list