From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8913 invoked by alias); 19 Jan 2009 02:42:27 -0000 Received: (qmail 8745 invoked by uid 22791); 19 Jan 2009 02:42:26 -0000 X-SWARE-Spam-Status: No, hits=2.6 required=5.0 tests=BAYES_50,DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Jan 2009 02:42:20 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LOk5i-0004XX-7d for cygwin@cygwin.com; Sun, 18 Jan 2009 18:42:18 -0800 Message-ID: <21536086.post@talk.nabble.com> Date: Mon, 19 Jan 2009 03:39:00 -0000 From: LMHmedchem To: cygwin@cygwin.com Subject: Question about windows shortchts to start a bash script MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-01/txt/msg00563.txt.bz2 Greetings to the Cygwin list forum, I have had some difficulty finding a place to post this question and I hope this is it. I have a cygwin bash script that runs rsync and makes some entries in the rsync log files. Here is an example. echo " " >> F:/_Data_Volume_Backup/rsync_log/01_Data_Level_log.txt echo " " >> F:/_Data_Volume_Backup/rsync_log/01_Data_Level_log.txt echo "***** new log entry *****" >> F:/_Data_Volume_Backup/rsync_log/01_Data_Level_log.txt date >> F:/_Data_Volume_Backup/rsync_log/01_Data_Level_log.txt rsync -v -a -r -p -b --suffix=.back -E -t --log-file=/cygdrive/f/_Data_Volume_Backup/rsync_log/01_Data_Level_log.txt /cygdrive/d/_Data_Level/ /cygdrive/f/_Data_Volume_Backup/_Data_Level/ unix2dos F:/_Data_Volume_Backup/rsync_log/01_Data_Level_log.txt This script just puts a couple of newline characters between log entries and then sticks in the date. Then rsync is called and last unix2dos is called to make the logfile readable in notepad. I call this script from a desktop shortcut with the following properties. Target: C:\cygwin\bin\sh.exe /usr/local/bin/DLBackup.sh Start in: C:\cygwin\bin I have run this script for a long time on another computer, but when I just set it up on a different computer, the bash terminal opens briefly, displays some messages that are almost too fast to read, and then closes. The log files have entries for "***** new log entry *****", so the script is getting that far, but the error message "date: command not found" and "rsync: command not found" are written to the shell. If I run the script from the shell, it runs normally and I get the anticipated results. Can anyone tell me why this is not working, especially since it works on another computer with the same setup? Thanks LMHmedchem -- View this message in context: http://www.nabble.com/Question-about-windows-shortchts-to-start-a-bash-script-tp21536086p21536086.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/