I have a script on a remote server (bServer) which SSH's to a central server (lets call is cServer) and kicks a script which further SSH's to 2 other server (server13 / server14), a script is ran on each of these servers which produces a file.
I have DSA SSH's keys set up from cServer to server13/14. cServer will then pull the produced files from server13/14 and then bServer will pull them from cServer.
This works perfectly when ran manually.
However... When I schedule the job on bServer in CRON, the file from server14 is not pulled onto cServer.
Here's what's more interesting: the file from server13 DOESN'T TRANSFER from cServer to bServer when the the ssh OR scp command to server14 is present in the same script.
If I have them in separate scripts, server13 file get back to bServer fine but the file for server14 is only PRODUCED, and not transferred at all back to cServer.
Both server13 and server14 are running the same build of SunOS.
I've read so many different solutions for similar problems, but haven't found any resolution.
This has to be the most annoying problem I've ever came across. Any help would be most appreciated!