X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk Message-ID: <4CFF9B94.7010402@cygwin.com> Date: Wed, 08 Dec 2010 09:52:04 -0500 From: "Larry Hall \(Cygwin\)" Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: du -ks output different when run from command and when run on scheduled task References: <4CFEB363 DOT 5040205 AT cygwin DOT com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 12/8/2010 9:34 AM, computer tech wrote: > On Tue, Dec 7, 2010 at 3:21 PM, Larry Hall (Cygwin) > wrote: ^^^^^^^^^^^^^^^^^^^^^^^^ - Thanks. > Hi Larry, Thank you for your response. I read the link and a few of > those items are a little over my head. If I try authenticating my self > to the network in the following manner in the bash script > > net use '\\server\share' /user:DOMAIN\my_user my_users_password > > then use the share on the script like so > du -ks \\server\share > > Will that traverse that share with the credentials used in the net use > command? That's one possible workaround. Cygwin prefers POSIX paths though so I'd recommend forward slashes for the 'du' command. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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