delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=3.3 required=5.0 tests=AWL,BAYES_00,BOTNET,SARE_SPEC_REPLICA_OBFU |
X-Spam-Check-By: | sourceware.org |
Message-id: | <4BA6A454.1050205@cygwin.com> |
Date: | Sun, 21 Mar 2010 18:57:24 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
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: 1.7.1- Scheduled Tasks runs but lacks 'du -kh' output |
References: | <75e9b2701003211010n4222abb1s9f8491e20db8b3e4 AT mail DOT gmail DOT com> |
In-reply-to: | <75e9b2701003211010n4222abb1s9f8491e20db8b3e4@mail.gmail.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 3/21/2010 1:10 PM, computer tech wrote: > I have a .bat file, that is scheduled to run as NT Authority\System > every morning. The schedule tasks calls the run.bat file. The script > is running at the schedule time, but when I check the files in the > morning the only output is from the 'echo' commands(see hello-fs2.sh > script below). I don't see any of the output from the 'du' and 'find' > commands(see hello-fs2.sh script below). When I manually run the > script from the cygwin command line it works properly as intended. The > machine is runnings WinXP SP 3 with A petium 4 processor(3.0ghz). > > ---- file run.bat > @echo off > C:\cygwin\bin\bash.exe --login -c "/home/bob/hello-fs2.sh" > ---- > ---- file hello-fs2.sh > #!/usr/bin/bash > DIR=//device01/shares/replica/ > OUT=/cygdrive/c/logs > echo `date`>> $OUT/Avondale-foldersize.txt > du -k --max-depth=1 $DIR | sort -nr>> $OUT/foldersize.txt > echo `date`>> $OUT/Changedfile.txt > find $DIR -type f -mtime -1 -print>> $OUT/Changedfile.txt > echo "---- done --- ">> $OUT/Changedfile.txt > ---- > Here is the output from one of the output files when the scheduled > tasks runs automatically. Like I explained the output is only the > 'echo' commands not the from the 'du' and 'find' command. > ---file Changedfile.txt > Wed Mar 17 03:17:02 USMST 2010 > Done ---- > ---- > Any insight into this problem will be truly appreciated. Thank you Is the above what's in Changedfile.txt? If so, it doesn't match what I'd expect to see given the script you've included. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |