This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin-2.5.0 net share wbadmin no longer working post update


Alexandria Gutierrez writes:
> I was already using a single quotes to send the command via ssh, such as:
> ssh -q -n 'command here'

Those quotes never make it over to the Windows side, since they are
stripped by the invoking shell (unless you do something to the shell).

> I added the single quotes on the path itself such as:
> -backuptarget:'\\SERVERNAME\PATH\TO\SHARE'
> and this time it worked via cygwin terminal,
> but it still does not work via ssh for some reason

That quoting just ensures you don't need to write "\\\\SERVER\\PATH"
like you would with double quotes.

> On cygwin on the windows nodes, I made sure they are using bash
> on the linux node by default we use kornshell
>
> Since nothing has changed, do you think this difference in shell may
> be the difference?

I don't know.  But if you're dealing with multiple and possibly
different levels of quote removal, things get ugly really fast.  It
seems a lot simpler to just put that command in a shell script, test
that thoroughly and then just call that script remotely.  You could make
that script the login shell for a service user and can then just ssh to
that user to start the backup.  Or, since we're talking Windows after
all, install the wbadmin command as a service that can be started from
Cygwin (this would have the advantage that it's easily started manually
from task manager as well).


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]