Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

go file, crontab and calling shell script.

Featured Replies

I'm trying to schedule a shell script in cron.

 

I've edited my go file per a forum post to add the entries into crontab:

 

# crontab stuff

crontab -l > /tmp/file.cron; cat >> /tmp/file.cron << EOT

# Run lftp every minute

* * * * * /boot/custom/pull.sh

* * * * * /boot/custom/watch.sh

EOT

crontab /tmp/file.cron; rm /tmp/file.cron

 

What I'm getting are emails saying that it cant find the scripts. I've tried putting them on a drive mounted under /mnt and as you can see in /boot/custom:

 

/bin/sh: /boot/custom/watch.sh

: No such file or directory

 

They exist in /boot/custom

-rwxrwxrwx  1 root root  584 Sep 24 21:33 watch.sh*

-rwxrwxrwx  1 root root  699 Sep 24 21:33 pull.sh*

 

 

Edit: I just tried /bin/sh /boot/custom/watch.sh via the shell and it did execute as expected.

 

Do you guys have any idea why cron cant find the scripts?

 

thanks!

-Jim

 

  • Author

I think I solved this. It needed the /bin/sh in front of it.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.