Running Scripts without a Console.

πŸ“š Hoofdstuk 26.2: Scripts draaien zonder een console

──────────────────────────────
πŸ”Œ Wat is nohup?
──────────────────────────────
β€’ nohup staat voor "no hangup".

β€’ Het voorkomt dat een script wordt beΓ«indigd wanneer je de terminal afsluit of uitlogt.

β€’ Voorkomt dat het script stopt door het SIGHUP-signaal (hangup).

Typische syntax:
nohup ./script.sh &

──────────────────────────────
πŸ“„ Output naar nohup.out
──────────────────────────────
β€’ Omdat de terminal niet beschikbaar is voor uitvoer, schrijft nohup standaard naar:
nohup.out

β€’ Dit bestand wordt automatisch aangemaakt in de huidige directory.

⚠️ Let op:
β€’ Bij meerdere nohup-scripts komt alle output in hetzelfde bestand β†’ kan onoverzichtelijk worden.

Bekijk de output met:
cat nohup.out