简体   繁体   中英

Running an executable from bash script

My apologies if the question is naive.

Is it possible to run a few lines in a bash script then execute a dos batch file and a dos executable file, after completing the execution of the batch file and executable file, continue executing the rest of the lines in the bash script?

Can I do this using dosemu ?

A bash script will always finish the script after completion of any called script or executable. example:

@echo off
echo hello
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
echo hope you had fun browsing the web!
pause

This will always echo the last line of code as soon as firefox is closed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM