execute a shell script from a python script

Cameron Laird claird at lairds.us
Tue Jul 18 10:00:33 EDT 2006


In article <1153187926.407414.201530 at m73g2000cwd.googlegroups.com>,
Simon Forman <rogue_pedro at yahoo.com> wrote:
>spec wrote:
>> Thanks, actually there are no args, is there something even simpler?
>>
>> Thanks
>> Frank
>
>you could try os.system()
>
>>From the docs:
>
>system(command)
			.
		[more detail]
			.
			.
I'm concerned the follow-ups in this thread have been too subtle.
Here is what you need to know:  use system().  A model such as

  import os
  os.system("my_script")

fulfills exactly the requirements the original poster described.



More information about the Python-list mailing list