X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: Date: Mon, 14 Jan 2008 16:17:21 +0100 From: "Mirco Piccin" To: cygwin AT cygwin DOT com Subject: Re: How can I run a script? In-Reply-To: <787dcac20801140652q25212341k281d667f1c4a5fbf@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <787dcac20801131641m59f7161ehf8bb2e1fcfbddc30 AT mail DOT gmail DOT com> <478B653E DOT 4010903 AT byu DOT net> <032e01c856b3$3f406a60$2e08a8c0 AT CAM DOT ARTIMI DOT COM> <787dcac20801140652q25212341k281d667f1c4a5fbf AT mail DOT gmail DOT com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Hi again. > The base install of cygwin is on an E: drive. C: didn't have enough room. > > So if I understand correctly something like - > > > E: > > chdir E:\cygwin\bin > > bash --login -i -c 'rsync -avz root AT 10 DOT 0 DOT 0 DOT 2 :/home/funnel/Jan* > /cygdrive/e/Earchives' ...yes, it seems right. > Then another question arises where does the std output and std error > go too? 2>&1 >> foo_file ? > > I could fix that by running rsync in quite mode -q Well, if you want to save the log, you can simply redirect all the output in a file, so append something like that to your original command (inside the '): >> /any/path/log_file do the job. If you want to discharge the output, appending : 2>&1 should be enough. Anyway, after the shell command is ran, the shell close itself. It is also possible to create a bash script on cygwin environment and then start it by the way described above. Regards M -- 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/