using python at the bash shell?

Tim Roberts timr at probo.com
Thu Aug 10 02:10:17 EDT 2006


John Salerno <johnjsal at NOSPAMgmail.com> wrote:
>
>Can you use IPython to do normal bash things, like installing, etc.?

Most scripts on Linux have a "hash-bang" line as their first line:
    #! /bin/sh

When you execute that script, the system knows that it has to load sh or
bash to process it, regardless of what program launched the script.  The
same thing works for Python scripts:
    #! /usr/bin/python
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list