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.

What's the correct folder to put cron scripts in?

Featured Replies

I've got a bash script I want cron to run every night. I've tried putting the script in /etc/cron.daily/ which works fine but the script gets deleted if my server ever needs to reboot. If I put it in /boot/config/plugins/myscripts/ I get an email with the subject "cron for user root * /boot/config/plugins/myscripts/backblaze.sh" and body of "/bin/sh: mdcmd: command not found"

 

I'm using unraid 6.3.5



I've got a bash script I want cron to run every night. I've tried putting the script in /etc/cron.daily/ which works fine but the script gets deleted if my server ever needs to reboot. If I put it in /boot/config/plugins/myscripts/ I get an email with the subject "cron for user root * /boot/config/plugins/myscripts/backblaze.sh" and body of "/bin/sh: mdcmd: command not found"
 
I'm using unraid 6.3.5


Easiest solution is to run the script on a custom schedule via the user scripts plugin.

You may need to specify the complete path to mdcmd
  • Author

Here's the thing though, my script doesn't use mdcmd. If I run my script manually it runs just fine

Here's the thing though, my script doesn't use mdcmd. If I run my script manually it runs just fine
K. I'm assuming you're adding a file called something.cron


The .cron file is a cron expression and then the full path to the script you're running

E.g.:

0 12 * * * /path/to/script.sh

  • Author

Yup that's what I did. I had /boot/config/plugins/myscripts/backblaze.cron which pointed to /boot/config/plugins/myscripts/backblaze.sh. I'll try the CA User Scripts plugin.

  • 11 months later...

I'm trying the same thing -

 

cron file is in /boot/config/plugins/dynamix

sh file is in same location

 

I can run the sh file by going into /boot/config/plugins/dynamix and running ./script.sh and it runs but if I call it from my cron

49 14 * * * /boot/config/plugins/dynamix/script.sh

 

I get bash: script.sh#: No such file or directory.

 

What am I missing?

 

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.