I have this snippet in from my script that will call or execute using
ssh in trusted hosts another script. The erreport.sh has an initial
function that will delete the previous errorlog.out.  However, the
next line which verify the timestamp of the output script, shows
result that the old file was not overwitten or no new  output  got
created. What would be the better way of doing this?  This script
produced the desired ouput if executed on cli at its host.

ssh ${HOST} '/var/report/erreport.sh'
ssh ${HOST} 'ls -la /var/report/errlog.out `hostname`' >> $BASE_DIR/UP_${FILE}

Thanks in advance,

Thad
--
sometimes truth is stranger than fiction
-bad religion-
http://www.bloglines.com/blog/mailist
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
plug@lists.linux.org.ph (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to