Save output to file - inside a script ?

view full story

http://www.unix.com – I'm using the following script to check cisco router health and I'd like to save output to a file, Code: vty_runcmd.sh > /check/check-cisco-health script works and output is saved to a file. However using it in crontab file is created but output is not printed inside it. In crontab, Code: */5 * * * * /usr/local/sbin/vty_runcmd.sh > /check/check-cisco-health Better would be to print the output -red characters- (output comes from reading cisco commands stored into a file) to a file directly from inside the script, can someone help me ? here it is the script, I think the prin (HowTos)