Hello,
I copy daily (with crontab) many files from our servers to my PC,
What I want is how to know if the files are copied whith success,
is there a way to know if an error has occured ?
for file in `ssh $REMOTE_SERVER ls /dir/[ab]*`
do
scp -Cr $REMOTE_SERVER:$file /tmpdir/
done
Best regards.
CCNA
I copy daily (with crontab) many files from our servers to my PC,
What I want is how to know if the files are copied whith success,
is there a way to know if an error has occured ?
for file in `ssh $REMOTE_SERVER ls /dir/[ab]*`
do
scp -Cr $REMOTE_SERVER:$file /tmpdir/
done
Best regards.
CCNA