I am writing some programs (not really programs - just executable text files with multiple command prompt commands) to make running my system a little easier. I have added them to cron and they are running perfectly.
The only problem I have with them is that they output info. One uses the 'service' program that comes with RH and outputs the result of turning on/off a service. When these are run by cron, it sends an email to root displaying the output. Not that I mind seeing that my programs are working, but now I have a couple hundred messages in my inbox giving my the output for every program after it has run.
Back in the DOS days, you could put '@echo off' into batch files (like the autoexec.bat) to hide all the output of the commands. Is there a way to do this in Linux?
Andy