convert bat to .sh (Solved)


Recommended Posts

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
Link to comment

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

 

 

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

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.