Hello
Below is a snipit of shell script and the process works, but was wondering the chmod part is not working.
if test ! -f /var/logs/collect$month.log
then
touch /var/logs/collect$month.log
chmod 662 /var/logs/collect$month.log
chown userid:usergroup /var/logs/collect$month.log
Also..
I would like to have the script output the each line to my screen. How do I do that, so if I run the scrip, then what do I need to do so the output is on my screen?
Thanks..
Below is a snipit of shell script and the process works, but was wondering the chmod part is not working.
if test ! -f /var/logs/collect$month.log
then
touch /var/logs/collect$month.log
chmod 662 /var/logs/collect$month.log
chown userid:usergroup /var/logs/collect$month.log
Also..
I would like to have the script output the each line to my screen. How do I do that, so if I run the scrip, then what do I need to do so the output is on my screen?
Thanks..