|
SUMMARY:rcp logging: msg#00025os.solaris.managers.summaries
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 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | SUMMARY: about compiling kile software: 00025, Gerard Henry |
|---|---|
| Next by Date: | SUMMARY: Creating a searcheable filesystem index: 00025, Roland Gabriel |
| Previous by Thread: | SUMMARY: about compiling kile softwarei: 00025, Gerard Henry |
| Next by Thread: | SUMMARY: Creating a searcheable filesystem index: 00025, Roland Gabriel |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |