I have a script which is run by CRON
It looks in a folder on a remote server for a file & if there will copy it across, process it then ON THE REMOTE SERVER move it to a 'done' folder.
Most of the time - it works
BUT all too frequently it hangs for hours on the MOVE
I use
/usr/bin/ssh -q me@xxx.xxx.xxx.xxx -i /xxxx/xxxx/.ssh/id_dsa_mfssh "mv ~/$path/export/myfile ~/path/done"
Is there some way I can set a timeout and check success/failure & retry ???
Any help much appreciated
It looks in a folder on a remote server for a file & if there will copy it across, process it then ON THE REMOTE SERVER move it to a 'done' folder.
Most of the time - it works
BUT all too frequently it hangs for hours on the MOVE
I use
/usr/bin/ssh -q me@xxx.xxx.xxx.xxx -i /xxxx/xxxx/.ssh/id_dsa_mfssh "mv ~/$path/export/myfile ~/path/done"
Is there some way I can set a timeout and check success/failure & retry ???
Any help much appreciated