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

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
Message-ID: <41307AF5.D872CEC@hot.pl>
Date: Sat, 28 Aug 2004 14:30:45 +0200
From: Jacek Trzmiel <sc0rp AT hot DOT pl>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: SYSTEM-owned shell shortcut (Was Re: xinetd Permissions; IMAP server)
References: <NGBBLLIAMFLGJEOAJCCEOEHNDNAA DOT _garbage_collector_ AT telia DOT com>
X-IsSubscribed: yes

--------------425F976C3A2467A57F5957C3
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: 7bit


> I've attached my "sysbash", which WFM.
> Who knows there might be problems with it too ;-P

It does display wrong number of seconds to start.  Patch attached :)

Besides there is small chance, that if run e.g. at 14:07:59 it will not
manage to execute at command before 14:08:00, thus sheduling job for
next day.

Best regards,
Jacek.
--------------425F976C3A2467A57F5957C3
Content-Type: text/plain; charset=iso-8859-2;
 name="sysbash.path"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="sysbash.path"

--- sysbash.org    2004-08-28 13:56:18.171875000 +0200
+++ sysbash        2004-08-28 13:57:21.015625000 +0200
@@ -53,6 +53,7 @@
 # Display result
 #---------------
 at
+s=`date +%S`
 echo -e "\e[31mat id-number /delete     \e[0m# <- this will remove a badly set job\n \
-\e[41m The new SYSTEM owned shell will launch in $(( 60 - $m )) seconds, at $h:$m \e[0m"
+\e[41m The new SYSTEM owned shell will launch in $(( 60 - $s )) seconds, at $h:$m \e[0m"







--------------425F976C3A2467A57F5957C3
Content-Type: text/plain; charset=us-ascii

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

- Raw text -


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