At work there's a script that lists completed tasks. This was written by someone else and is hosted over the network. I have an alias in my .bashrc that calls this script, with its many flags and such, and I wanted to write a python script that would call this alias every few minutes so I can have a shell open with updated stats. However, subprocess.call("myAlias")
fails. I'm still fairly new to python, and am struggling to figure this out.
from subprocess import call
def callAlias():
call("myAlias")
callAlias()
I plan on adding more too it, but I hit the snag on my first step. :P
I would post more, but there's a lot of sensitive confidential stuff I have to be careful with. Sorry for the vague code, and lack of error output.
call
, rather than rely on an alias that may or may not be present.call()
args, or convert the alias into a script thatcall()
can invoke.