Open SSH configuration query

Gert Doering gert at greenie.muc.de
Thu Jul 18 20:03:59 EST 2013


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