I am executing shell scripts on windows command prompt by making bash as the default application to open .sh files. I am able to run any script without input parameters , but for those scripts with input parameters I get the error "Unable to initialize device PRN". I can see that the parameters are not being passed to the script. How can I pass an argument to the shell script from windows command line?
This is what I am doing in the command prompt.
X:> OracleSPExec.sh Procedure Database PROCEDURE= export PROCEDURE DATABASE= export DATABASE
it seems that the shell script uses print
command/builtin, which may conflict with windows print.exe
which prints file to PRN
: device.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With