This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SYSTEM-owned shell shortcut (Was Re: xinetd Permissions; IMAP server)


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






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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]