Borys Bradel's Blog

Be careful when using the combination of nohup and bash scripts

Tags: linux November 10, 2009    

Unfortunately trying to wrap up my thesis is extremely time consuming, which leaves little time for anything else. That results in few posts.

I ran into a problem with functions in bash scripts and nohup. The problem occurred because I did not specify what shell to use for the script. That was never a problem because my default shell is bash. However, nohup uses a different shell, thus resulting in my script exiting due to an error. The lesson is to always specify a shell at the beginning of a script.

Copyright © 2009 Borys Bradel. All rights reserved. This post is only my possibly incorrect opinion.

Previous Next