hi Thanks to Christ Clark for the answer below. :) Elaine . wrote: > hi > How can i log error messages from rcp so I can see if > there is a failure ? > I put on tracing inetd but that shows failure /success > the same - > Mar 8 14:10:41 machine inetd[1025]: [ID 317013 > daemon.notice] shell[1329] from ip 968 > Mar 8 14:10:55 machine inetd[1025]: [ID 317013 > daemon.notice] shell[1330] from ip 967 > > So I tried redirecting output - > rcp -r $SENDDIR user@machine:dir | >> > ${logdir}/log.tmp > and failing it but on screen i get "permission denied" > but nothing shows up in ${logdir}/log.tmp > > any ideas ? Redirect the standard error, not standard output. rcp -r $SENDDIR user@machine:dir 2> ${logdir}/log.tmp Would be the Borne and Korn shell way to do it. In [t]csh, rcp -r $SENDDIR user@machine:dir >& ${logdir}/log.tmp ___________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived on Tue Mar 9 07:37:40 2004
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:26 EST