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.

convert bat to .sh (Solved)

Featured Replies

hey all 

 

Sorry if this is in the wrong place,

 

I have a script setup on my unraid server and a bat file on my windows vm that shuts down my win 10 vm and starts my ubuntu 20.04 vm up via ssh but i cant figure out the correct way to do it with ubuntu so to shut down ubuntu vm and start win 10 vm.

 

The bat file used for windows is 

 

"C:\Program Files\PuTTY\plink.exe" -ssh  -pw  password root@tower  "/mnt/disk1/scripts/retro-win10.sh VM-1 VM-2 > /dev/null &"

 

How would i convert this to being able to use it in ubuntu?

to achieve the same out come as windows double click shut down ubuntu start up win10.

 

i have putty installed on ubuntu, Im new to the linux world and still learning.

 

Any help would be much appreciated.

Cheers Tinni 

Edited by tinni88
Solved

Try

/usr/bin/plink -ssh  -pw  password root@tower  "/mnt/disk1/scripts/retro-win10.sh VM-2 VM-1 > /dev/null &"

 

Because you didn't post the content of the .sh file, I'm just assuming that you want to reverse the VM-1 and 2 parameters. If it doesn't work, post the sh content.

  • Author

hey jonathanm 

 

Thanks for getting back to me i didn't need to change the vm parameters as i have two different scripts on unraid (one) win10-retro.sh (two) retro-win10.sh   

 

I just tried that but it comes back as

"unable to open connection

temporary failure in name resolution"

 

Not really sure why that is coming back as that As i can ssh into the unraid sever via putty no problems.

 

any other ideas?

Cheers Tinni

 

 

  • Author

Thanks jonathanm

 

That did the trick all working now )

 

Changed tower to ip & changed "C:\Program Files\PuTTY\plink.exe" to /usr/bin/plink 

 

Thanks again for your help 

  • tinni88 changed the title to convert bat to .sh (Solved)

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.