delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/28/20:01:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Sat, 28 Aug 2004 20:01:19 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: overbored <overbored AT overbored DOT net>
cc: cygwin AT cygwin DOT com
Subject: Re: SYSTEM-owned shell shortcut (Was Re: xinetd Permissions; IMAP server)
In-Reply-To: <4130FD58.2050504@overbored.net>
Message-ID: <Pine.GSO.4.61.0408281954120.14676@slinky.cs.nyu.edu>
References: <412E8545 DOT 4060504 AT overbored DOT net> <Pine DOT GSO DOT 4 DOT 61 DOT 0408271054340 DOT 29680 AT slinky DOT cs DOT nyu DOT edu> <Pine DOT GSO DOT 4 DOT 61 DOT 0408271400050 DOT 6181 AT slinky DOT cs DOT nyu DOT edu> <4130FD58 DOT 2050504 AT overbored DOT net>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

Hi,

Please make sure your mailer respects the Reply-To: header -- I set it for
a reason.  Cygwin-related mail should go to the Cygwin mailing list unless
specifically requested.  More below.

On Sat, 28 Aug 2004, overbored wrote:

> Hi, thanks for your reply. After spending 10 minutes staring at it, I think
> I've figured out what your script is doing. Just out of curiosity...why does
> there need to be a delay?

Because the retarded task scheduler interface (a.k.a. "at.exe") only
accepts times in minutes, so you have to wait for the next minute boundary
to schedule it.

HTH,
	Igor

> Igor Pechtchanski wrote:
> > On Fri, 27 Aug 2004, Igor Pechtchanski wrote:
> >
> > > [snip]
> > > Or you could try to get a SYSTEM-owned shell, and remove it from there.
> > > FWIW, I have a handy shortcut for that (see below).
> >
> > Sorry, I forgot to include the promised shortcut.  Here it is:
> >
> > C:\cygwin\bin\bash.exe -c "at $(date +%H):$(($(date +%M) + 1)) /interactive
> > 'c:\cygwin\bin\bash.exe' --login -i; secs=$((60 - $(date +%S))); while [
> > $secs -ne 0 ]; do echo -ne 'Please wait '$secs' seconds for the shell \r';
> > sleep 1; secs=$(($secs - 1)); done"
> >
> > Just paste the above line in the "Target:" field of the shortcut.  What
> > this will do is show a window with the countdown until the system-owned
> > login shell pops up.  If you want to make it really nice, set the width of
> > the shortcut screen buffer (in the Layout tab) to 38 and the height to 1.
> >
> > The above assumes you installed Cygwin in c:/cygwin.  If you installed it
> > somewhere else, the shortcut needs to be modified accordingly.
> > HTH,
> > 	Igor

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

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