How do I pass a variable to an external program
Cameron Laird
claird at lairds.com
Fri Oct 10 15:12:53 EDT 2003
More information about the Python-list mailing list
Fri Oct 10 15:12:53 EDT 2003
- Previous message (by thread): Pickle question
- Next message (by thread): How do I pass a variable to an external program
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <guDhb.342$%93.301 at news-binary.blueyonder.co.uk>, Rigga <Rigga at noemail.com> wrote: >> . >> . >> . >> In the short term, >> os.system('cd %s' % variable) >> is probably what you think you want. >Wow thanks for the fast response that works a treat, now i just gotta find >out how you run more than one command on a line i.e. >os.system('cd %s' 'ls -lt') > > os.system('cd %s; ls -lt' % variable) To save even more time, visit <URL: http:// www.python.org/doc/current/tut/tut.html >. -- Cameron Laird <claird at phaseit.net> Business: http://www.Phaseit.net
- Previous message (by thread): Pickle question
- Next message (by thread): How do I pass a variable to an external program
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list