Sample Header Ad - 728x90

Messages on new terminal after using nohup

3 votes
1 answer
1021 views
I'm trying to [run a few commands asynchronously](https://unix.stackexchange.com/q/289221/56041) on a login script (.bash_profile). When I open a new terminal, I see messages like this. They also show up when I log onto a system over SSH. Last login: Sat Jun 11 19:21:44 on ttys001 - Exit 127 nohup -c 'git fetch -p && git pull' &/dev/null (wd: ~/cryptopp) (wd now: ~) + Exit 127 nohup -c 'git fetch -p && git pull' &/dev/null (wd: ~/openssl) (wd now: ~) The login script performs the following: if [ -d "$HOME/cryptopp" ]; then cd "$HOME/cryptopp" nohup -c 'git fetch -p && git pull' /dev/null & fi if [ -d "$HOME/openssl" ]; then cd "$HOME/openssl" nohup -c 'git fetch -p && git pull' /dev/null & fi The extra redirect gyrations are due to [nohup:ignoring input and appending output to 'nohup.out'](https://stackoverflow.com/q/24646320) . The extra single quotes are due to [How to escape single-quotes within single-quoted strings?](https://stackoverflow.com/q/1250079) If it matters, I'm working on OS X, so its using Bash 3. But the scripts usually run on Linux, BSD and Solaris, and I'm seeing it on Debian 8, too. I have a few question. First, what is the problem nohup is complaining about? Second, how do I fix the problem nohup is complaining about? Third, how do I suppress messages like this?
Asked by user56041
Jun 12, 2016, 01:52 AM
Last activity: Jun 12, 2016, 03:21 AM