Hello All
I have a problem, I need to run a script from the cron that ssh other machines arcoss the network. it works great from the command line but when I run it from the cron it fells.
The script calls a back up routine(quick restore) and forks a new child process that is exec on the command line.
$pid = fork();
if($pid == 0){
exec(qtar -g $path $file -L FULL -R >> $LOGFILE) || warn
}
I can run this from the command line (as root) with no problems.
I think the problem is in ENV. beacuse the back up routine fells when tring to open a remote file. I notice that the cron only have a few ENV listed. I think I need to add more ENV to the cron ???