Automation, IT and more.

15 Jul 2011

The exit code from the script was 246

The Server automation error code, can sometime be a little bit cryptic.

You are running a Server Automation script and you have this error in the consol :

Internal Opsware Agent error (job_run_unix): error in execv /tmp/
errno = 13, Permission denied
The exit code from the script was 246.

It’s because you can’t run script in the /tmp directory on the target server.

to be sure :

root@server:/tmp # echo "echo hello World" >
root@server:/tmp # chmod +x
root@server:/tmp # ./
ksh: ./ cannot execute

Call your SysAdmin