hi,<br>i'm trying to write a section of my program that needs to run bash builtin alias and declare, i've googled and tried every type of example i could find no to avail. this is what I've tried below and it doesn't work, is there a way for me to execute a bah builin from python? what i need is to take alias output and pipe it to another command with python and return the results to a string or list.<br>

<br>>>> p1=Popen(["alias"],stdout=PIPE)<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>  File "/usr/lib/python2.6/subprocess.py", line 621, in __init__<br>

    errread, errwrite)<br>  File "/usr/lib/python2.6/subprocess.py", line 1126, in _execute_child<br>    raise child_exception<br>OSError: [Errno 2] No such file or directory<br><br>if i add shell=True i get empty string and no thins error message<br>

<br>>>> p1=Popen(["alias"],stdout=PIPE,shell=True)<br>>>> p1<br><subprocess.Popen object at 0xb7589a4c><br>>>> p1.stdout.read()<br>''<br><br clear="all">thank you,<br>-Alex Goretoy<br>