Run bash script with command line arguments

Posted by Trey Parkman on Server Fault See other posts from Server Fault or by Trey Parkman
Published on 2010-06-11T21:12:54Z Indexed on 2010/06/11 21:23 UTC
Read the original article Hit count: 426

Filed under:
|

I want to do

/usr/bin/bash myscript.sh -args

which, as it stands, runs the script but doesn't pass the args to it. I realize that the conventional syntax is simply

./myscript.sh -args

but I'm curious as to what I need to do in order to call the script from bash explicitly.

© Server Fault or respective owner

Related posts about bash

Related posts about unix-shell