I have written a Shell which is been added to Crontab to execute few commands which Monitors my solaris boxes.
some commands aren't writing the logs(its Blank). but If I run directly it writes the log.
Ex: dfspace >> /unused1/Monitoring/Log/log_110.txt,
and have the same 10 boxes, am checking the same through shell script and transferring the log to a single Box with different file names
would like to this remotely on all the boxes at once every 3 hours.
Please help me with this
I found the answer,
When we need some commands to run automatically through crontab, we need to execute them from the executable location,
Ex: /vs/bin/logCat -t30 >> /unused1/Monitoring/Log/log_110.txt
and
/vs/bin/tools/dfspace >> /unused1/Monitoring/Log/log_110.txt
would execute and write the logs with out any issues