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.

Mailversand aus den User Scripts

Featured Replies

Hi zusammen,

 

ich würde gerne eine Mail nach dem Ausführen eines User Scripts versenden. Gibt es dazu einen speziellen Unraid Befehl oder muss das mit dem Kommando sendmail laufen? Wenn ja, hätte mal einer ein Beispiel für mich?

 

Danke!

 

Gruß Bernd

 

 

Solved by cz13

  • Community Expert
  • Solution

Im Backup Script von mgutt werden die emails über die unraid notification verschickt:

 

# notification

if [[ $message == "Error"* ]]; then

notify "Backup failed!" "$message"

elif [ "$notification_success" == 1 ]; then

notify "Backup done." "$message"

fi

 

quelle: 

 

  • Author

Danke, das hat mir geholfen!

 

Hier jetzt meine Lösung, welche ich in den Scripten verwende:

/usr/local/emhttp/webGui/scripts/notify -i "xxxx" -s "xxxx" -d "xxxx" -m "xxxx"

 

Bitte die entsprechenden Infos eintragen (bei den xxxx).

Hier eine Auflistung (kann man auch sehen, wenn man die Datei /usr/local/emhttp/webGui/scripts/notify öffnet):

notify [-e "event"] [-s "subject"] [-d "description"] [-i "normal|warning|alert"] [-m "message"] [-x] [-t] [-b] [add]
  create a notification
  use -e to specify the event
  use -s to specify a subject
  use -d to specify a short description
  use -i to specify the severity
  use -m to specify a message (long description)
  use -l to specify a link (clicking the notification will take you to that location)
  use -x to create a single notification ticket
  use -r to specify recipients and not use default
  use -t to force send email only (for testing)
  use -b to NOT send a browser notification
  all options are optional

 

Danke noch mal!!

 

Gruß Bernd

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.