Skip to main content
added 7 characters in body
Source Link
muru
  • 77.9k
  • 16
  • 212
  • 317

I have the following launcher.sh file:

[…]

May 25 03:48:56 vultr.guest systemd[818]: Failed at step EXEC spawning /root/craig/mybot/launcher.sh: Exec format error

May 25 03:48:56 vultr.guest systemd[818]: Failed at step EXEC spawning /root/craig/mybot/launcher.sh: Exec format error

systemd is not a shell interpreter. It does not do what shells do, including falling back to interpreting programs themselves if they cannot execute them directly as program image files.

/root/craig/mybot/launcher.sh is not a valid executable that can be used as a program image file by the execve() system call. To be so, it needs to have the magic number denoted by the characters #! in the first two bytes of the file, followed by the pathname of the interpreter that will interpret the remainder of the file.

Further reading

I have the following launcher.sh file:

[…]

May 25 03:48:56 vultr.guest systemd[818]: Failed at step EXEC spawning /root/craig/mybot/launcher.sh: Exec format error

systemd is not a shell interpreter. It does not do what shells do, including falling back to interpreting programs themselves if they cannot execute them directly as program image files.

/root/craig/mybot/launcher.sh is not a valid executable that can be used as a program image file by the execve() system call. To be so, it needs to have the magic number denoted by the characters #! in the first two bytes of the file, followed by the pathname of the interpreter that will interpret the remainder of the file.

Further reading

I have the following launcher.sh file:

[…]

May 25 03:48:56 vultr.guest systemd[818]: Failed at step EXEC spawning /root/craig/mybot/launcher.sh: Exec format error

systemd is not a shell interpreter. It does not do what shells do, including falling back to interpreting programs themselves if they cannot execute them directly as program image files.

/root/craig/mybot/launcher.sh is not a valid executable that can be used as a program image file by the execve() system call. To be so, it needs to have the magic number denoted by the characters #! in the first two bytes of the file, followed by the pathname of the interpreter that will interpret the remainder of the file.

Further reading

Source Link
JdeBP
  • 71.9k
  • 13
  • 175
  • 378

I have the following launcher.sh file:

[…]

May 25 03:48:56 vultr.guest systemd[818]: Failed at step EXEC spawning /root/craig/mybot/launcher.sh: Exec format error

systemd is not a shell interpreter. It does not do what shells do, including falling back to interpreting programs themselves if they cannot execute them directly as program image files.

/root/craig/mybot/launcher.sh is not a valid executable that can be used as a program image file by the execve() system call. To be so, it needs to have the magic number denoted by the characters #! in the first two bytes of the file, followed by the pathname of the interpreter that will interpret the remainder of the file.

Further reading