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.

Method(s) to execute Scripts for SSH into another Server

Featured Replies

I'm about halfway through my Unraid trial, and loving it!  I currently have a low power Atom machine dedicated to turning the other hardware in my home office  (servers, switches, etc.) on/off each day via scripts using Expect, a program that allows for unattended interactive script execution.  I'm hoping to retire the Atom box and consolidate this functionality into my Unraid installation, but am unsure the best method?

 

I know Expect is available in Slackware.  But reading posts here, it seems that it wouldn't be an easy thing to add Expect, and its dependencies, to Unraid for execution of the scripts via Cron?

 

I think this leaves me with running an OS, like Ubuntu or Debian, in a Docker or VM to execute the scripts?  Is there another option I've missed?

 

If a Docker or VM, is there a clear choice in terms of lower resource overhead?  For my use case, I 'd only be using the Docker/VM to execute short scripts to SSH into other hardware several times a day.

 

The Unraid system itself is set up as a file server, with a low power Xeon, and 8GB RAM, so I'm thinking that I'll want the option that requires the least resources.

 

Thank you!

Searching docker hub for "expect" turns up a lot of result, and some look relevant. 

  • Author

Thanks!  I also just something in the User Scripts help thread.  Says Nerd Tools includes Expect so I can use that as the interpreter with User Scripts.  My Search Fu on the Unraid forums isn't very good yet, I guess! 

38 minutes ago, Markess said:

Nerd Tools includes Expect

So it does, I hadn't noticed.

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.