With zero information to go on, I'd say look at your environment variables. Be sure everything is set up in the process so that it can connect correctly. Be sure 'ssh' is in the PATH or specify an absolute path to SSH in you script. Be sure the current working directory is set up correctly. chdir("/tmp") if you have to, if the script is writing files to the current directory.
In short, check your assumptions. The environment the script is running under via cron won't be the same as what it is running under a shell prompt. Be sure everything is set up correctly. Add debugging code to your script so that it explains what it's trying to do and where it's trying to do it. Check for errors with your various functions that return errors and print those errors out so that you can see where your script is failing.
Aside from these general tips, it's nearly impossible for us to help you without additional information. Good luck.
In reply to Re: cron and ssh
by Fastolfe
in thread cron and ssh
by kelcey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |