How do i execute shellscripts from python?
Michael Hudson
mwh at python.net
Fri Dec 13 08:37:32 EST 2002
Jocke B <jyx at telia.com> writes:
> I've been looking at the net for this, but didn't find anything.
> Lets say i've made a bash-script that does some calculations, and then
> prints out a string. I want to execute this script from my pythoncode
> and then use the string that the bash script returned.
> Is it possible to do that?
I think you want the "commands" module.
Cheers,
M.
--
ARTHUR: Yes. It was on display in the bottom of a locked filing
cabinet stuck in a disused lavatory with a sign on the door
saying "Beware of the Leopard".
-- The Hitch-Hikers Guide to the Galaxy, Episode 1
More information about the Python-list
mailing list