I've got a small script that runs every minute, through crontab. I know this works because I have it flashing an LED (through a simple C program). I also want to display some text on a console when a user is logged in which is what I need some help with please.
The C program has a printf statement within it that succesfully outputs to the console when I run it manually, but when executed via the crontab scheduled script nothing shows up.
Similarly, including an echo command in the script shows nothing on a console that I have SSH'd into.
Is there anyway that I can tell the script to output everything to a specific user's console, or anywhere at all really where I can see it if I log in via SSH?