I have a bash script that, for reasons I won’t discuss, cannot be made executable. However, I need to pass arguments to that script.
I have tried this:
bash MyBashScript.sh MyArgumentOne
But the argument MyArgumentOne isn’t passed to the script. I know there must be a way to do this, can anyone help?
Your given command should work. Try to debug with calling trough
one of the
all_system_calls.txt.<pid>files created should contain something likeIf so you know for sure that the argument is passed into your script.