Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cygwin -Windows Unable to initialize device PRN

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
like image 829
user2319409 Avatar asked Dec 21 '22 06:12

user2319409


1 Answers

it seems that the shell script uses print command/builtin, which may conflict with windows print.exe which prints file to PRN: device.

like image 91
Roy Avatar answered Jan 03 '23 00:01

Roy