1 |
Ich bin mir ja nicht sicher was genau du machen willst, aber ich habe in einem meiner Skripte das so verwendet. |
2 |
|
3 |
Also ich habe das in meinen Skript so gelöst. |
4 |
|
5 |
date --date='20070326 1 day 240 minutes' +%s |
6 |
|
7 |
|
8 |
------------example--------------- |
9 |
DATE=20070326 |
10 |
CURTIME=$(date +%s) |
11 |
# do not import File after 04:00 |
12 |
SKIPTIME=$(date --date=''${DATE}' 1 day 240 minutes' +%s) |
13 |
|
14 |
if [ "${CURTIME}" -le "${SKIPTIME}" ]; then |
15 |
exit 0 |
16 |
else |
17 |
exit 1 |
18 |
fi |
19 |
|
20 |
-------------------------------------- |
21 |
|
22 |
Ciao |
23 |
AOE |
24 |
|
25 |
|
26 |
-----Original |
27 |
Message----- |
28 |
From: Torsten Veller [mailto:ml-de@××××××.net] |
29 |
Sent: Sonntag, 25. März 2007 00:12 |
30 |
To: gentoo-user-de@l.g.o |
31 |
Subject: [gentoo-user-de] Re: date für das nächste Auftreten von 6:00 Uhr |
32 |
|
33 |
* Peter Bossy <mls@××××××××.de>: |
34 |
> Das ist nicht das gleiche wie "Datum und Uhrzeit beim nächsten Mal 6 |
35 |
> Uhr" |
36 |
|
37 |
date -d'+18 hours' +"%Y-%m-%d 06:00" |
38 |
-- |
39 |
gentoo-user-de@g.o mailing list |
40 |
|
41 |
Die Information in dieser Nachricht ist vertraulich und ausschliesslich fuer den Adressaten bestimmt. Der Empfaenger dieser Nachricht, der nicht der Adressat, einer seiner Mitarbeiter oder sein Empfangsbevollmaechtigter ist, wird hiermit davon in Kenntnis gesetzt, dass er deren Inhalt nicht verwenden, weitergeben oder reproduzieren darf. Sollten Sie diese Nachricht irrtuemlich erhalten haben, benachrichtigen Sie uns bitte unverzueglich per Telefon und retournieren Sie uns die Nachricht per E-Mail/Fax. |
42 |
|
43 |
|
44 |
The information contained in this e-mail is privileged and confidential and is for the exclusive use of the addressee. The person who receives this e-mail and who is not the addressee, one of his employees or an agent entitled to hand it over to the addressee, is informed that he may not use, disclose or reproduce the contents thereof. If you have received this communication by mistake, please let us know by telephone without delay and send it back to us by e-mail/fax. |
45 |
-- |
46 |
gentoo-user-de@g.o mailing list |