Re: [PATCH 21/48] Both rc.single and rc.shutdown use the same code to kill everything.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



2010-09-01 17:29, Victor Lowther:

Bash globbing cannot handle it, but bash knows how to test file
timestamps, so we could code something up that handles killing the
daemons in reverse timestamp order if we had to.


ls -l --full-time healthd fancontrol
-rw-r--r-- 1 root root 0 2010-09-02 00:51:28.680006529 +0200 fancontrol
-rw-r--r-- 1 root root 0 2010-09-02 00:51:28.736673174 +0200 healthd

[[ healthd -nt fancontrol || healthd -ot fancontrol ]] || echo equal
equal

It appears as if bash doesn't recognise fractions of a second :/



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux