Embedding UNIX Commands

Bill Anderson bill at libc.org
Mon Feb 12 15:00:55 EST 2001


In article <kuwvavxvyu.fsf at lasipalatsi.fi>, "Erno Kuusela"
<erno-news at erno.iki.fi> wrote:

> In article <mailman.982008497.29571.python-list at python.org>, D-Man
> <dsh8290 at rit.edu> writes:
> 
> | I don't think you can use setenv -- that is a csh thing, and system()
> | won't even start up a shell (AFAIK).  Even if it did, it wouldn't do
> | you any good since that shell would terminate and its environment
> | would be meaningless.  (Also, on Linux systems bash is the default
> | shell)
> 
> actually, system() (and popen()) pass the command line to /bin/sh under
> unix.

Which _is_ bash (on most Linux Dists):
ucntcme at locutus in /home/ucntcme 
$ ll /bin/sh lrwxrwxrwx    1 root     root            4 Jan 13 19:58 /bin/sh -> bash*



More information about the Python-list mailing list