Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #88837
| From | Eli the Bearded <*@eli.users.panix.com> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: Something Odd - "top" Delivers Nada When Run By Crontab |
| Date | 2026-07-11 05:46 +0000 |
| Organization | Some absurd concept |
| Message-ID | <eli$2607110146@qaz.wtf> (permalink) |
| References | <BxedncNO6-XMIsz3nZ2dnZfqnPadnZ2d@giganews.com> |
In comp.os.linux.misc, c186282 <c186282@nnada.net> wrote: > Run the script from the CL and it works perfectly. > > Run it via root crontab though and the top redirect > file exists, but is EMPTY. The environment variables for cron jobs are usually nearly empty. Anytime something works from the shell but not from cron, check environment variables. Here's a tip: your cron scripts should work with _no_ environment variables at all. To run them that with, use `env -i`. When I run `env -i top` I get _no_ output at all. The "-b" option suggested in another post fixes the no output problem. Elijah ------ top probably wants $TERM set when not in batch mode
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Something Odd - "top" Delivers Nada When Run By Crontab c186282 <c186282@nnada.net> - 2026-07-10 23:57 -0400
Re: Something Odd - "top" Delivers Nada When Run By Crontab Rich <rich@example.invalid> - 2026-07-11 04:34 +0000
Re: Something Odd - "top" Delivers Nada When Run By Crontab c186282 <c186282@nnada.net> - 2026-07-11 01:38 -0400
Re: Something Odd - "top" Delivers Nada When Run By Crontab c186282 <c186282@nnada.net> - 2026-07-11 01:51 -0400
Re: Something Odd - "top" Delivers Nada When Run By Crontab Eli the Bearded <*@eli.users.panix.com> - 2026-07-11 05:46 +0000
Re: Something Odd - "top" Delivers Nada When Run By Crontab Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-07-11 05:57 +0000
Re: Something Odd - "top" Delivers Nada When Run By Crontab c186282 <c186282@nnada.net> - 2026-07-11 02:08 -0400
Re: Something Odd - "top" Delivers Nada When Run By Crontab Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-07-12 06:46 +0000
Re: Something Odd - "top" Delivers Nada When Run By Crontab c186282 <c186282@nnada.net> - 2026-07-12 22:10 -0400
Re: Something Odd - "top" Delivers Nada When Run By Crontab c186282 <c186282@nnada.net> - 2026-07-11 02:04 -0400
Re: Something Odd - "top" Delivers Nada When Run By Crontab rbowman <bowman@montana.com> - 2026-07-11 06:40 +0000
Re: Something Odd - "top" Delivers Nada When Run By Crontab c186282 <c186282@nnada.net> - 2026-07-11 22:54 -0400
Re: Something Odd - "top" Delivers Nada When Run By Crontab rbowman <bowman@montana.com> - 2026-07-12 03:00 +0000
Re: Something Odd - "top" Delivers Nada When Run By Crontab c186282 <c186282@nnada.net> - 2026-07-12 19:23 -0400
Re: Something Odd - "top" Delivers Nada When Run By Crontab Rich <rich@example.invalid> - 2026-07-12 03:36 +0000
Re: Something Odd - "top" Delivers Nada When Run By Crontab c186282 <c186282@nnada.net> - 2026-07-12 19:25 -0400
Re: Something Odd - "top" Delivers Nada When Run By Crontab The Natural Philosopher <tnp@invalid.invalid> - 2026-07-13 10:01 +0100
csiph-web