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.

Best practice scripting on UNRAID? Language?

Featured Replies

Hi.
I'm a bit new to the linux scene, coming from a very microsoft based workplace. I have been running unraid for a couple of months now and I'm slowly moving away from my Windows VM to docker containers.
Right now I'm stuck at replacing a PowerShell script. The script checks for a JSON auth-token, runs a couple of Rest-API queries, re formats results and Inserts them into a MariaDB database, close and repeat every 5 min.


So the question is, and I'm thinking this might be a hot debate, but what would be the best approach to converting this to running natively on UNRAID in some form?

BASH? Python? Installing PowerShell? User Script Plugin? How do I make it run every 5 min?

Thanks in advance!
 

My personal preference for scripting on Unraid is PHP.  It is built into Unraid as it is widely used behind the GUI to support server-side actions but is a full blown programming language so can do almost anything you can think of and I find it much easier to use than something like bash.

 

In term of scheduling then the User Scripts plugin allows you to specify virtually any frequency you like if you use the 'Custom' option.

  • Author

@itimpi
Thanks for the reply.
I happen to know a bit of PHP so the PowerShell script wont be to hard to convert.
I will try this! Thanks!

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.