0

I want to run this in background. Here is the content of my .sh file. Please suggest me

java -Dlogback.configurationFile=logback.xml -jar report-schedule.jar $1

2 Answers2

1

You can use & at the end of your shell command,

sh YourScriptShell.sh &

Or you can also use Ctrl+z and then write bg bg for background. To retrieve it in foreground, use fg

And that's it :)

Totoc1001
  • 338
  • 2
  • 11
0

use

nohup your_shellscript &
Jens
  • 67,715
  • 15
  • 98
  • 113