« Back to Index

Run foreground process in background (odd I know)

View original Gist on GitHub

Run foreground process in background.sh

nohup cron -f &

# nohup: invoke a utility immune to hangups (ignore SIGHUP "signal hang up")
# cron -f: run cron process in foreground
# &: run in background