Re: execute a shell script from a python script
- From: "spec" <frank@xxxxxxxxxxxxxxxx>
- Date: 17 Jul 2006 16:59:46 -0700
Thanks, actually there are no args, is there something even simpler?
Thanks
Frank
Thomas Nelson wrote:
If your script is foo.sh and takes args:
import subprocess
subprocess.call(["foo.sh","args"],shell=True)
Should work fine. check out
http://www.python.org/dev/doc/maint24/lib/module-subprocess.html
Enjoy,
THN
spec wrote:
Hi all, I know nothing about Python. What I need to do is to get a
Python script to execute a local shell script. I do not need any
output. What would be th eeasiest way to accomplish this?
Thanks!
.
- Follow-Ups:
- Re: execute a shell script from a python script
- From: Simon Forman
- Re: execute a shell script from a python script
- From: John McMonagle
- Re: execute a shell script from a python script
- References:
- execute a shell script from a python script
- From: spec
- Re: execute a shell script from a python script
- From: Thomas Nelson
- execute a shell script from a python script
- Prev by Date: Re: How to lock files (the easiest/best way)?
- Next by Date: Re: execute a shell script from a python script
- Previous by thread: Re: execute a shell script from a python script
- Next by thread: Re: execute a shell script from a python script
- Index(es):
Relevant Pages
|