To be honest, I'm not surprised your not seeing the output from the first line. CRON scripts run in the *background*, not the foreground.
And in addition, even if it did run in the foreground, unless it's a GUI based program, you still would not have a GUI window pop-up and display your ntp.sh file.
You have not said which Linux distribution you are talking about. So it's not easy to help without knowing that.
Edit: You have also got the 'shebang' (#!/bin/bash) line as the second line in your script, it HAS to be the first line.
Last edited by jsbjsb001; 02-11-2018 at 11:58 PM.
|