shell script
2 TopicsCall Powershell Script from Unix Shell Script
Hi All, Trust you're all having a great day. I have a powershell script on my Windows server which does some active directory operations. I wish to call that script from another Linux machine using a shell script. I have installed powershell server on my Windows server and can communicate with my linux machine using key based ssh authentication. The issue is that my script just stops once the command for ssh to Windows server is executed. My shell script below: !/bin/bash echo "script run" GROUP=$1 ACCOUNT=$2 ssh Administrator@ sleep 10 echo "\scriptname.ps1 -group $GROUP -account $ACCOUNT" sleep 5 echo "exit" exit I have tried without the echo command as well and it still hangs. Any idea what I must be doing wrong here? How can I make it work please? Regards, GauravSolved1.2KViews0likes3CommentsExternal Health monitor
Hi, I need some assistance creating shell script for use in a external health monitor. I do to have much experience in creating scripts so if someone could either assist or point me to a good reference that would be a start. We are running an internal app that utilizes msql (proprietary sql language) and I want to create a script that can be called and depending upon the outcome will the service show up or down. echo "remote("") {list library version}" | msql -utgbmin -wtacb201112 -S ?s The service should be marked up if Executing... Success! is shown and it should be marked down if Executing... Error! is shown. I have opened a ticket with websupport and they do not assist with this type of request is all I received back! Your help is appreciated. Thanks, MeganSolved677Views0likes6Comments