ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: ASA <llb@udm.ru>
To: Pavel Tsybulin <community@altlinux.ru>
Subject: Re: [Comm] crontab
Date: Thu, 5 Jun 2003 07:37:47 +0500
Message-ID: <1472397707.20030605073747@udm.ru> (raw)
In-Reply-To: <20030604202317.GA2627@pasha.alkorn.net>

Hello Pavel,

Thursday, June 5, 2003, 1:23:17 AM, you wrote:

PT> Подскажите, пожалуйста,
PT>   как указать в crontab выполнять событие в 23:35 каждый
PT>   _последний_ день месяца ?
Напрямую никак.
Можно поставить задание на 28, 29, 30 и 31 числа и написать
скрипт враппер что-то типа 
#!/bin/sh
if [ `date +%d -d"1 day"` == "1" ];then
  do_my_script
fi

Смысл проверки: является ли завтрашний день первым числом месяца.

-- 
Best regards,
 ASA                            mailto:llb@udm.ru



  reply	other threads:[~2003-06-05  2:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-04 20:23 Pavel Tsybulin
2003-06-05  2:37 ` ASA [this message]
2003-06-05  3:35   ` BSW
2003-06-05  2:56 ` BSW
2003-06-05  3:42 ` Maxim.Savrilov
2003-06-05  4:01   ` Ilya Palagin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1472397707.20030605073747@udm.ru \
    --to=llb@udm.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git