Howto pass an argument to alias of a script?
I have a script that needs to run as root. I have an alias for it:
alias my_script='su -c /path/path/path/my_script.sh \$*'
Now, I've added to the script some options that can be given as parameters from the command line. for example:
This works fine, but the alias doesnt pass that correctly...
$ my_script 123
su: user 123 does not exist
I've tryed all kind of combinations of "" '' `` but it didnt worked.
Can someone please advise?