From: "Dmitry V. Levin" <ldv@fandra.org> To: Mandrake-Russian <mandrake-russian@linuxteam.iplabs.ru> Subject: [mdk-re] Re: [mdk-re] Альтернативный cron Date: Wed Feb 7 09:49:01 2001 Message-ID: <20010207074322.A6956@LDV.fandra.org> (raw) In-Reply-To: <20010207041711.1C4BC38C0@vezyolka.dgap.mipt.ru>; from yz-news@mail.ru on Wed, Feb 07, 2001 at 07:17:10AM +0300 [-- Attachment #1: Type: text/plain, Size: 1466 bytes --] On Wed, Feb 07, 2001 at 07:17:10AM +0300, Yury Zotov wrote: > Меня интересует такой вопрос. Существует ли готовое решение такой задачи. > Нужно, чтобы задачи для крона не запускались, если загрузка процессора, > скажем, 95%, а откладывались "до лучших времен" и потом выполнялись. Все Загрузка процессора измеряется в других единицах. > дело в том, что я занимаюсь вычислениями и частенько они попадают на время > для крона, что очень не удобно. Выделить другое время для крона тоже > трудно, так как всегда хочется посчитать все за один раз и это всегда > занимает разное время. Если есть идеи как решать, тоже пишите, глядишь сам > сделаю. > > Заранее спасибо за помощь. Стандартный "vixie-cron" этого не умеет, но в сочетании с не менее стандартным "at" можно легко добиться желаемого результата: достаточно написать задачу для крона, которая будет делать следующее: echo 'реальная задача' |batch Таким образом, Вы фактически из одной очереди переводите задачу в другую очередь. См. тж. atd(8), batch(1). Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@fandra.org Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html IPLabs Linux Team http://linux.iplabs.ru Fandra Project http://www.fandra.org +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are. [-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2001-02-07 9:49 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-02-07 7:15 [mdk-re] áÌØÔÅÒÎÁÔÉ×ÎÙÊ cron Yury Zotov 2001-02-07 9:49 ` Dmitry V. Levin [this message] 2001-02-07 10:42 ` [mdk-re] " Yury Zotov 2001-02-07 15:40 ` [mdk-re] Re: [mdk-re] Альтернативный cron Dmitry V. Levin
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=20010207074322.A6956@LDV.fandra.org \ --to=ldv@fandra.org \ --cc=mandrake-russian@linuxteam.iplabs.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