How to run commands in command line from a script
Peter Hansen
peter at engcorp.com
Fri Jul 1 11:53:48 EDT 2005
Ivan Shevanski wrote:
> Well, the thing is that I was just using changing directories as an
> example for running a name specific command, is the <long winded reply
> here> the only way to run name specific commands? An example would be
> (what I am actually trying to do) run the simply command
> mame s1945
> in the command line. MAME is, for those of you that care, the multaple
> arcade machine emulator and the command runs the classic game strikers
> 1945. I'm just trying to automate the tedious process of running it
> through the command line. By the way, thanks to everyone who responded
> I'm really getting along here.
So basically "os.system" would have done exactly what you wanted if
you'd tried it on "mame" instead of using "cd", for reasons we've now
covered. :-)
-Peter
More information about the Python-list
mailing list