[Tutor] Shell scripting

Patrick optomatic at rogers.com
Wed Sep 17 18:30:58 CEST 2008

I was just wondering if there was a way to return the results of a
python script to the bash shell? I was thinking about using the output
as an argumen for another shell command. I know that we can use the
shell from within Python via the OS module but I believe this is usually
used to feed input into the program.

Here is a silly pseudo code example:

bash command | some-python-script.py |  some.other-script.sh

thanks in advance-Patrick

More information about the Tutor mailing list