How do you run a shell script in a new terminal in Linux from a terminal like “start test.bat” in Windows, also it should be working in the console mode.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s a simple example to get you started:
To write a shell script, do this on your command prompt:
This writes:
To a file called
abc.shNext, you want to set it to executable by:
Now, you can run it by:
And you should see:
On your terminal.
To run it in a new terminal, you can do:
or, if it’s
xterm:Here’s a list of different terminal emulators.
Alternatively, you just run it in your current terminal, but background it instead by: