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.

How to install a binary/executable to use in a user script?

Featured Replies

I made a small script that I need to add to unraid to run periodically. I know of the user scripts package, and I want to use it to execute the script. I have a config.json and the executable. Where to put it? In /boot there I cannot run `chmod +x` on the executable.

What is the best practice to make this work?

37 minutes ago, eXorQue said:

I made a small script that I need to add to unraid to run periodically. I know of the user scripts package, and I want to use it to execute the script. I have a config.json and the executable. Where to put it? In /boot there I cannot run `chmod +x` on the executable.

What is the best practice to make this work?


I tested and one way to do this is run the script with 

sh script.sh

 

Instead of trying to do ./script.sh

I don't know if this is the "right" way to do it.

If you're needing to run an actual executable file, you would need to have your script copy it somewhere on the RAM filesystem (like /usr/local/bin/), set +x there, then run the file.

  • Author
11 hours ago, EDACerton said:

If you're needing to run an actual executable file, you would need to have your script copy it somewhere on the RAM filesystem (like /usr/local/bin/), set +x there, then run the file.

So that's something that I should do from the user script as well then? Everytime I run the script, I copy over the executable file, and it's configs and run it from the userscript. Seems cumbersome, but if it's the best practice, I suppose we'll go with it

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.