tags:

views:

26

answers:

0

I'm using the 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 it's executing crontab -l on the remote machine.

But I don't have opt1 directory so export won't be copied to my local machine in /opt1/exp_opera_crontab

I don't 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?