So, latest #Linux weirdness:

I have a series of commands ‘VMBoxManage’ that I want to call from a cron job.

If I execute the commands as my user, no issue. If I execute the commands as a cron job (as my user) no issue. If I put the commands in a nice tidy bash script, and call it from the CLI or cron, no worky. (Command not found)

EDIT: actual error message is “cannot execute: required file not found”

I currently have it working with a massive, ugly command in cron. (I.e. /usr/bin/command1 && /usr/bin/command2 &&…) but it’s ugly.

How fix?

I think I might have fixed it.

The .sh file started its life as a DOS text file. This will apparently cause problems.
#Linux

@crispius Well, that's just stupid.
@ZenHeathen
That’s what happens when you mix environments. 🤷‍♂️
@crispius not the old CR / CR LF trick? I forgot about that one.
Or some other issue?