X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Francis Litterio Subject: Re: Run a script in the Background Date: Tue, 09 Sep 2008 12:07:56 -0400 Lines: 26 Message-ID: References: <86DE41A6B02448F28CC7D71855CD9636 AT HOME1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Draft-From: ("nntp+news.gmane.org:gmane.os.cygwin" 100449) X-Random-Quote: Rather than love, than money, than fame, give me truth. I sat at a table where were rich food and wine in abundance, and obsequious attendance, but sincerity and truth were not; and I went away hungry from the inhospitable board. -- Henry David Thoreau (1817 - 1862), Walden User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) X-IsSubscribed: yes 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 Diogo Branco wrote: > Hi, i have Cygwin install on a Windows 2003 Machine and i whant to run a > script on the background from time to time how can I accomplish that? You can do this in a Bash shell: $ myscript &> output & You may want to follow the above command with: $ disown so that the script continues to run when you exit Bash. This can also be achieved by starting the script with the "nohup" command. If you want to launch the script from a Windows shortcut, make the shortcut run this command: cygstart --hide bash c:/path/to/myscript You will probably want to make the shortcut start minimized, otherwise you see a console window flash on the screen briefly when you launch the shortcut. -- Fran -- 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/