www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/01/14/08:36:36

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-Authority-Analysis: v=1.0 c=1 a=xe8BsctaAAAA:8 a=j9Hm_W6j1vY0kAqO5eAA:9 a=gjo-hD5SfKF-OFSmH2k6yzxcvDoA:4 a=eDFNAWYWrCwA:10 a=rPt6xJ-oxjAA:10
Message-ID: <478B653E.4010903@byu.net>
Date: Mon, 14 Jan 2008 06:35:58 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, brent DOT bolin AT gmail DOT com
Subject: Re: How can I run a script?
References: <787dcac20801131641m59f7161ehf8bb2e1fcfbddc30 AT mail DOT gmail DOT com>
In-Reply-To: <787dcac20801131641m59f7161ehf8bb2e1fcfbddc30@mail.gmail.com>
X-IsSubscribed: yes
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to BB on 1/13/2008 5:41 PM:
| can login to a shell from windows and run commands but how do I create a
script

A script is just a file containing the commands that you would have run
from the shell, optionally prefixed by something like a #!/bin/sh line to
specify the intepreter of those commands.

Perhaps your real question was how you can automate the running of such a
script without user intervention?  If so, why not ask that in the first
place?  At any rate, cron serves as a nice package to automate the running
of arbitrary scripts at set times.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHi2U984KuGfSFAYARAqtfAKDYoIa17mJsGBs+jw+rkj9FKudLJACgv8X1
ORx5BEBiJtcRX48DKj1JC08=
=ZEHH
-----END PGP SIGNATURE-----

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019