Can you get a very simple proof of concept script to work? A quick "Hello-world" through the same mechanism would hopefully show if it is the process of elevating privilege or the commands actually running that is the problem. So a
What output/errors do you get?
Thanks, in advance,
Robin
okay. So below is the explanation and error.
1. The script which I have put on my Windows machine: abc.ps1
2. When I run it from Linux machine using Cygwin WITHOUT enabling password-less connection, It asks for password and execute like a charm. See below-
3. Now I generate an ssh-key on Linux for user shekhar and copy it on Windows machine to make a password less connection.
4. Now I run the same script again. Now it doesn't asks a password makes a connection with Windows box and display Hello world(first line of code) but fails on the second line
I am using Cygwin to establish ssh connection from LinuxBox to Windiws Box.
I wrote and compiled a program on a unix machine using g++. Now I copied it over to the machine with the Unix emulator Cygwin. I tried to run it by entering "a.out" in the command prompt but was given:
"bash: a.out: command not found" (without the quotes)
Also worth mentioning is that i... (5 Replies)
I am new to shell scripting.
I tried to run a simple shell script using Cygwin terminal in Win XP env.
The script I have written is as follows -
#!/bin/bash
a=5
] && echo "true" || echo "false"
But when I execute the script, getting some confusing error. The error I am getting are - ... (3 Replies)
Need some help getting this script to work. can someone help. I am trying to create a script that moves log files to another location and only keeps 60 days worth. please see script I started but having issue getting to work..
$TODAY=GET-DATE
GET-CHILDITEM C:\test\*.LOG | Where {... (9 Replies)
I would like to the the windws8/cygwin/bash shebang feature to start a powershell script.
I do a "chmod +x set-sound.ps1"
and then at a bash prompt I do
./set-sound.ps1
The first line of ./set-sound.ps1
#!powershell.exe -ExecutionPolicy unrestricted
The result is the result:
... (5 Replies)
I have cygwin installed on windows server and when I do
echo $SHELL the output is
/bin/bash
I have created a ssh tunnel from this windows server through cygwin to ibm -i series which is running Q-shell.
I am trying to invoke a utility wsadmin (used for scripting) on ibm-i from the... (12 Replies)
All,
Have a weird issue where i need to generate a report from GitHub monthly detailing user accounts and the last time they logged in. I'm using a windows box to do this (work issued) and would like to know if anyone has any experience scripting for GitAPI using windows / cygwin / powershell?... (9 Replies)
I have python installed here on windows:
C:\Python27 and can run a script from the command line but would rather use cygwin.
$ cd "C:\Users\cmccabe\Desktop\annovar"
cmccabe@DTV-L2231M5J /cygdrive/c/Users/cmccabe/Desktop/annovar
$ python run_batch_job.py
Traceback (most recent call last):... (3 Replies)
Hello Friend,
I am not expert in power shell scripting. I nee custom powershell script which check if given process is running on windows machine or not.
will use it in nagios to monitor that process. (0 Replies)
Hi
I have a powershell script which is checking whether a windows service is running (as shown below)
function FuncCheckService
{
$ServiceName = 'pgsql-9.2'
$arrService = Get-Service -Name $ServiceName
if ($arrService.Status -eq 'Running')
{
Write-Output... (8 Replies)
Here is a powershell script to use restful API to create ticket in our ticketing tool. Can anyone please convert it to a shell script sothat, I can run it in Unix servers,
below is the code:
$body = @{
Customer= ''test'
Summary= 'test summary'
Impact= '4-Minor/Localized'
... (2 Replies)