Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
1.2k views
in Others by
I am working on configuring Jenkins. I would like to create .sh script and write below command.

 

java -jar jenkins.war

 

as a command. Once above command is execute, I will close terminal. how do I achive this?

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)

On ubuntu you can execute any command as seperate process by appending it with & at the end.

Your .sh script should look like as below.

~$ cat runjenkins.sh
#!/bin/bash
java -jar jenkins.jar &

 


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...