X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=VLc/9 zWUKkgwCO+1kWlS/Lz9A3bMmsCNEw6zRsBzA4r74HW7hNwHlV1DFe1H+zStqhbbx v67nYGjUVK3gUqrLCY1ppshbKjDDK4OkYVvMNfJo0dsNMaaAdvnEm9ZCGM+RoV8t hezjZiVDyh5/8eIeE/AN+hsEupcswG7bTiSmoQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=NhTDyslWc+9 BIV6coeb4HQIBS/Q=; b=cD+5G4sxfKUE3gABVff4NYwvIzAmbMAZkoZNRpXyRwL 8IgoPZSUphhdc71tiByFW8ffuY0L1hpQmnGDcHzGJ0cm3yhfWscyLpADPmZLvhGo zPpNC58cJ/DVJAD4dhSIgxxSDyMkmkW4/cYnGQH68R/pkzdjxEtuW2wMfi/ZEF9k = Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,RCVD_IN_JMF_BL,SPF_PASS autolearn=no version=3.3.2 spammy=alexandria, wbadmin, cygwin250, cygwin-2.5.0 X-HELO: mail-in-17.arcor-online.net X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-06.arcor-online.net 3qm6Pz2K2Rz7lkb From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: Cygwin-2.5.0 net share wbadmin no longer working post update References: Date: Thu, 14 Apr 2016 19:01:07 +0200 In-Reply-To: (Alexandria Gutierrez's message of "Thu, 14 Apr 2016 11:59:06 -0400") Message-ID: <87ega8t99o.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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