In the pl file attached the menu opens and the user makes a selection and cygwin closes. There are error messages on the screen but it closes too quickly to see them. How can I pause the batch file and keep it from closing so I can see the messages and being troubleshooting? Thank you :).
This is an MS-DOS question and is more appropriate in this forum.
I think it would be more convenient to directly run the perl program rather than wrapping it in a batch script. Not sure if you have a specific constraint for doing it this way.
If you do want to use it, look at the pause command.
In the pl file attached the menu opens and the user makes a selection and cygwin closes. There are error messages on the screen but it closes too quickly to see them. How can I pause the batch file and keep it from closing so I can see the messages and being troubleshooting? Thank you :).
You're going about this all wrong.
The files you have attached
windows_annovar.sh
windows_annovar.pl
are the same file. You can't just rename files and expect them to run with different interpreters.
Line 117 windows_annovar.sh
cd 'C:\Users\cmccabe\Desktop\annovar'
$( perl table_annovar.pl ${id}_matched.avinput humandb/ -buildver ... blah blah blah)
This is calling perl table_annovar.pl to access a database (humandb) I think. Do you have all those perl files installed?? If so, perl needs to know where to find them. The full path to the folder that contains them should be in PATH as well as the full path to the perl modules.
PATH belongs in windows_annovar.sh...not this one. Actually, it belongs in the shell environment.
Get rid of this file.
Cygwin opens and closes quickly. The sh file is attached and in the file there are cd commands that contain the humandb. If I run it from the command line using
bash ~/newbatch.sh
it runs fine. Since I am using windows I altered that file a bit and would like to have a user just double click on the bat file to run the program. Thank you :).