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


Markess

Recommended Posts

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!

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.