Recreating nohup.out

50 Views Asked by At

I'm a new to a Linux, I've encountered an issue. What I've done: i have created the shell script which runs jar file that inside have the System.out.println - prints. Then I ran the sh using: "nohup myScript.sh". It started to produce nohup.out file that appends my output from jar file. Then after hours I found that file very large and just ran a command: "rm nohup.out".

Is there a way to tell nohup to continue to write the output? Without killing currently running process and re-run "nohup myScript.sh"? Because what jar does, it migrating the data between two different environments. So I won't to kill it and start all process again.

Please, provide me some useful information or if u had been in the same issue, how did u solve it?

Cheers

0

There are 0 best solutions below