Every night cron runs the nightsync program: it sends the day's orders to the archive server. This morning nothing was sent, and the cron report only shows exit status 1. Run nightsync yourself and see what it says.
Run nightsync
In ~/sync-lab, run nightsync, then check the exit status it ended with.
First, predict
nightsync failed during the night. What will it print when you run it by hand?
Now start the exercise, run the command and compare your prediction with the output.
nightsync printed nothing and exited with status 1. What do you know for sure from this?
-
Then the shell would write
command not found, and the status would be 127.type nightsyncshows where the program is. -
A process killed by a signal exits with 128 + the signal number — 137 after SIGKILL, for example. nightsync has status 1.
-
A successful run ends with status 0, even when there was nothing to do. Status 1 is a failure.
nightsync ran and reported the failure only through status 1.