GrahamBright
Programmer
Hi,
I am trying to use RCP to transfer files to a remote sever.
All is fine using the following with the following : -
rcp $FILE $HOSTNAME:$BASE_RCP_DIR/$HOSTNAME/$DATE
and the exit code 0 is returned as seen in $?
However if I try to use copy a file which is not present no exit code is returned.
I need the exit code so I can take some action when rcp fails.
Thanks in advance,
Graham.
I am trying to use RCP to transfer files to a remote sever.
All is fine using the following with the following : -
rcp $FILE $HOSTNAME:$BASE_RCP_DIR/$HOSTNAME/$DATE
and the exit code 0 is returned as seen in $?
However if I try to use copy a file which is not present no exit code is returned.
I need the exit code so I can take some action when rcp fails.
Thanks in advance,
Graham.