Open SSH configuration query

Saurabh Bhatnagar saurabh.b.bhatnagar at oracle.com
Thu Jul 18 20:17:19 EST 2013


That script is a shell script and runs in ksh(on windows).
I am not sure that it will invoke dos shell within the parent shell script.

-- 
Warm Regards, 
-----Original Message-----
From: Gert Doering [mailto:gert at greenie.muc.de] 
Sent: Thursday, July 18, 2013 3:34 PM
To: Saurabh Bhatnagar
Cc: Gert Doering; Prashanth Maiya; Darren Tucker; openssh-unix-dev at mindrot.org
Subject: Re: Open SSH configuration query

Hi,

On Thu, Jul 18, 2013 at 01:48:14AM -0700, Saurabh Bhatnagar wrote:
> 
> $ssh <server> "cmd.exe /c script.bat"
> (This will run the bat file and return the prompt) $
> 
> What I need is that when I do
> $ssh <server> mainscript.sh
> It should find the shares set above.

Include "cmd.exe /c setup-shares.bat" at the top of mainscript.sh if that script needs the shares.

gert
--
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert at greenie.muc.de
fax: +49-89-35655025                        gert at net.informatik.tu-muenchen.de


More information about the openssh-unix-dev mailing list