rvesse commented on issue #1951:
URL: https://github.com/apache/jena/issues/1951#issuecomment-1621909651

   So if you are going to run this on a remote machine via a ssh session 
`disown` is likely not enough as a terminal disconnect, e.g. due to no output 
for a long time, still interrupts the process so you likely need `nohup` 
instead (aside [`disown` vs `nohup` 
explained](https://unix.stackexchange.com/a/148698))
   
   So ideally you want something like the following:
   
   ```bash
   $ nohup tdb2.xloader <your-args> > load.txt &
   $ tail -f load.txt
   ```
   
   So launch into with `nohup` to disassociate from the terminal and redirects 
its output to `load.txt` and places the process into the background.  Thus even 
if your `ssh` session disconnects the process continues running.  You can then 
monitor the process by tailing the log file, and you should also be able to see 
it in `ps`, `top` etc.
   
   Then if you get disconnected you can then reconnect and simply resume 
monitoring by tailing the log file, `ps`, `top` and so on
   
   --
   
   An alternative workaround would be set up SSH Keepalive for your connection 
so long pauses in terminal output don't cause a disconnect.  See 
`ServerAliveInterval` in the [`ssh_config` man 
page](https://linux.die.net/man/5/ssh_config)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to