remsh rsh error redirect problem

Posted by soField on Stack Overflow See other posts from Stack Overflow or by soField
Published on 2010-05-11T21:11:24Z Indexed on 2010/05/11 21:14 UTC
Read the original article Hit count: 199

Filed under:
|
|

using following command on hp-ux

remsh opera -l myuser crontab -l > /opt1/exp_opera_crontab 2>/opt/a.log

and when i echo $? i get 0 because its executing crontab -l on remote machine

but i dont have opt1 directory so export wont be copied to my local machine in /opt1/exp_opera_crontab

i dont get any error about this when i run this remsh or rsh command is there any way to identify both of remote and local machine related errors and redirecting them into my local machine ?

© Stack Overflow or respective owner

Related posts about rsh

Related posts about error