Skip to main content
added 82 characters in body
Source Link
Marinos An
  • 889
  • 9
  • 13

Here is my experience trying to run soffice in the background, following a non-terminating command (e.g. tail). For this example I will use sleep 100.

In all the cases below I execute like this:

./scriptfile <Ctl-C> 

&

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-C soffice stops

nohup .. &

#!/bin/bash nohup /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I don't see soffice logs / by pressing Ctrl-C soffice stops

& disown

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & disown sleep 100 

I see soffice logs / by pressing Ctrl-C soffice stops

setsid .. &

#!/bin/bash setsid /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-C soffice DOES NOT STOP

To save space:
nohup setsid .. : does not show logs / soffice DOES NOT STOP on Ctrl-C
nohup with & disown at the end : does not show logs / soffice stops on Ctrl-C

Here is my experience trying to run soffice in the background, following a non-terminating command (e.g. tail). For this example I will use sleep 100.

&

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-C soffice stops

nohup .. &

#!/bin/bash nohup /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I don't see soffice logs / by pressing Ctrl-C soffice stops

& disown

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & disown sleep 100 

I see soffice logs / by pressing Ctrl-C soffice stops

setsid .. &

#!/bin/bash setsid /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-C soffice DOES NOT STOP

To save space:
nohup setsid .. : does not show logs / soffice DOES NOT STOP on Ctrl-C
nohup with & disown at the end : does not show logs / soffice stops on Ctrl-C

Here is my experience trying to run soffice in the background, following a non-terminating command (e.g. tail). For this example I will use sleep 100.

In all the cases below I execute like this:

./scriptfile <Ctl-C> 

&

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-C soffice stops

nohup .. &

#!/bin/bash nohup /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I don't see soffice logs / by pressing Ctrl-C soffice stops

& disown

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & disown sleep 100 

I see soffice logs / by pressing Ctrl-C soffice stops

setsid .. &

#!/bin/bash setsid /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-C soffice DOES NOT STOP

To save space:
nohup setsid .. : does not show logs / soffice DOES NOT STOP on Ctrl-C
nohup with & disown at the end : does not show logs / soffice stops on Ctrl-C

Added kbd taggs to keystrokes
Source Link
jesse_b
  • 41.6k
  • 14
  • 108
  • 163

Here is my experience trying to run soffice in the background, following a non-terminating command (e.g. tail). For this example I will use sleep 100.

&

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-CCtrl-C soffice stops

nohup .. &

#!/bin/bash nohup /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I don't see soffice logs / by pressing Ctrl-CCtrl-C soffice stops

& disown

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & disown sleep 100 

I see soffice logs / by pressing Ctrl-CCtrl-C soffice stops

setsid .. &

#!/bin/bash setsid /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-CCtrl-C soffice DOES NOT STOP

To save space:
nohup setsid .. : does not show logs / soffice DOES NOT STOP on CtrlCtrl-CC
nohup with & disown at the end : does not show logs / soffice stops on CtrlCtrl-CC

Here is my experience trying to run soffice in the background, following a non-terminating command (e.g. tail). For this example I will use sleep 100.

&

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-C soffice stops

nohup .. &

#!/bin/bash nohup /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I don't see soffice logs / by pressing Ctrl-C soffice stops

& disown

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & disown sleep 100 

I see soffice logs / by pressing Ctrl-C soffice stops

setsid .. &

#!/bin/bash setsid /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-C soffice DOES NOT STOP

To save space:
nohup setsid .. : does not show logs / soffice DOES NOT STOP on Ctrl-C
nohup with & disown at the end : does not show logs / soffice stops on Ctrl-C

Here is my experience trying to run soffice in the background, following a non-terminating command (e.g. tail). For this example I will use sleep 100.

&

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-C soffice stops

nohup .. &

#!/bin/bash nohup /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I don't see soffice logs / by pressing Ctrl-C soffice stops

& disown

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & disown sleep 100 

I see soffice logs / by pressing Ctrl-C soffice stops

setsid .. &

#!/bin/bash setsid /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-C soffice DOES NOT STOP

To save space:
nohup setsid .. : does not show logs / soffice DOES NOT STOP on Ctrl-C
nohup with & disown at the end : does not show logs / soffice stops on Ctrl-C

added 98 characters in body
Source Link
Marinos An
  • 889
  • 9
  • 13

Here is my experience trying to run soffice in the background, following a non-terminating command (e.g. tail). For this example I will use sleep 100.

&

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I seesee soffice logslogs / by pressing Ctrl-C soffice stopsCtrl-C soffice stops

nohup .. &

#!/bin/bash nohup /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I don't seedon't see soffice logs logs / by pressing Ctrl-C soffice stops

& disown

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & disown sleep 100 

I seesee soffice logs logs / by pressing Ctrl-C soffice stopsCtrl-C soffice stops

setsid .. &

#!/bin/bash setsid /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I seesee soffice logslogs / by pressing Ctrl-C soffice DOES NOT STOP

To save space:
nohup setsid .. : does not show logs / soffice DOES NOT STOP on Ctrl-C on Ctrl-C
nohup with & disown at the end : does not show logs / soffice stops on Ctrl-Csoffice stops on Ctrl-C

Here is my experience trying to run soffice in the background, following a non-terminating command (e.g. tail). For this example I will use sleep 100.

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-C soffice stops

#!/bin/bash nohup /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I don't see soffice logs / by pressing Ctrl-C soffice stops

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & disown sleep 100 

I see soffice logs / by pressing Ctrl-C soffice stops

#!/bin/bash setsid /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-C soffice DOES NOT STOP

To save space:
nohup setsid .. : does not show logs / soffice DOES NOT STOP on Ctrl-C
nohup with & disown at the end : does not show logs / soffice stops on Ctrl-C

Here is my experience trying to run soffice in the background, following a non-terminating command (e.g. tail). For this example I will use sleep 100.

&

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-C soffice stops

nohup .. &

#!/bin/bash nohup /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I don't see soffice logs / by pressing Ctrl-C soffice stops

& disown

#!/bin/bash /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & disown sleep 100 

I see soffice logs / by pressing Ctrl-C soffice stops

setsid .. &

#!/bin/bash setsid /opt/libreoffice4.4/program/soffice -invisible -nofirststartwizard & sleep 100 

I see soffice logs / by pressing Ctrl-C soffice DOES NOT STOP

To save space:
nohup setsid .. : does not show logs / soffice DOES NOT STOP on Ctrl-C
nohup with & disown at the end : does not show logs / soffice stops on Ctrl-C

Source Link
Marinos An
  • 889
  • 9
  • 13
Loading