Help with zsh / scripting in Catalina please

Commissario
Joined
16 Oct 2002
Posts
343,134
Location
In the radio shack
I've installed Catalina.

First thing is that a script which I run from cron doesn't seem to work.

I don't know if cron has changed or my script is broken.

In cron I have:
Code:
@reboot /users/feek/documents/scripts/transmission.sh

The script itself is:
Code:
#!/bin/zsh
sleep 120
Open /Applications/Transmission.app

Because the shell has changed from bash to zsh, I changed the first line. I don't know if I needed to or not, I suspect not as it's a comment but anyway, I did.

When I boot the Mac, transmission doesn't open after the usual two minute delay.

However, both the sleep and the Open commands work perfectly if I run them from the terminal.

I don't know if the script isn't being called correctly from cron, or if the script isn't running.

Can anyone offer some advice please?

Thanks.
 
I've fixed it. I had to give cron full access to the HDD via security. I seem to remember I had to do this under Mojave as well but it hasn't persisted through the upgrade to Catalina.
 
Back
Top Bottom