How do I run a shell script from a JAR file?

Nguyễn Tân

New member
How do I run a shell script from a JAR file?
Answer
2 Answers. When you execute this script with /bin/bash MyStart.sh , it will print the PID of that process on the screen. Else you can change the attribute to MyStart
.sh ( chmod u+x MyStart.sh ) and run it simply with ./MyStart.sh . Remember to delete the script MyStop.sh after that you use it.
 

Tìm kiếm

Back
Top