Reputation: 29673
#!/bin/ksh
##########################################################################
$JAVA_HOME/bin/java -jar SocketListener.jar 8182
run_something_else
exit 0
SocketListener is started, and shell is waiting while SocketListener don't die.
How can I run run_something_else and SocketListener at the same time
Upvotes: 2
Views: 142
Reputation: 5647
You could background something else:
nohup run_something_else &
Nohup
will guarantee that sumething_else will run even if your terminal closes. So it will make it ignore sighup
Upvotes: 1
Reputation: 8530
nohup can be used to run the process in the background as daemon.
nohup runsomethingelse &
Upvotes: 3
Reputation: 67211
$JAVA_HOME/bin/java -jar SocketListener.jar 8182 &
add an ampersand(&
) at the end.this will give control of the terminal to the next line and makes your SocketListener
run in the background.
Upvotes: 5