Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #88845

Re: Something Odd - "top" Delivers Nada When Run By Crontab

From rbowman <bowman@montana.com>
Newsgroups comp.os.linux.misc
Subject Re: Something Odd - "top" Delivers Nada When Run By Crontab
Date 2026-07-12 03:00 +0000
Message-ID <nbgea1F1aplU5@mid.individual.net> (permalink)
References <BxedncNO6-XMIsz3nZ2dnZfqnPadnZ2d@giganews.com> <nbe6riFklo2U8@mid.individual.net> <vO2dnRopj-52nM73nZ2dnZfqnPSdnZ2d@giganews.com>

Show all headers | View raw


On Sat, 11 Jul 2026 22:54:10 -0400, c186282 wrote:

> On 7/11/26 02:40, rbowman wrote:
>> On Fri, 10 Jul 2026 23:57:54 -0400, c186282 wrote:
>> 
>>> Wrote a short Python script that uses os.system() to run 'top' ...
>>> redirecting the output to a file. We then clean-up the weird chars in
>>> the file and append it to an ongoing log file.
>> 
>> I think we've been here before...
>> 
>> https://docs.python.org/3/library/subprocess.html
>> 
>> Yes, it's one of those hateful, newfangled functions that might work
>> for you.
> 
>    Um ... there are LOTS of 'monitoring' apps for Linux at this point -
>    just did a survey a couple of days ago. Most are serious OVER-kill.
>    They also tend to record SO much shit that you'll never be able to
>    find YOUR particular problem in the mess.

subprocess is not an app. It is the Python library that is recommended 
rather than the older os.system and has more flexibility but you got 
system to work so go in peace. It probably won't be deprecated and dropped 
any time soon.

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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
            Re: Something Odd - "top" Delivers Nada When Run By Crontab c186282 <c186282@nnada.net> - 2026-07-14 21:38 -0400
              Re: Something Odd - "top" Delivers Nada When Run By Crontab rbowman <bowman@montana.com> - 2026-07-15 01:54 +0000
                Re: Something Odd - "top" Delivers Nada When Run By Crontab c186282 <c186282@nnada.net> - 2026-07-16 01:17 -0400
                Re: Something Odd - "top" Delivers Nada When Run By Crontab Rich <rich@example.invalid> - 2026-07-16 16:00 +0000
              Re: Something Odd - "top" Delivers Nada When Run By Crontab The Natural Philosopher <tnp@invalid.invalid> - 2026-07-15 12:18 +0100
                Re: Something Odd - "top" Delivers Nada When Run By Crontab c186282 <c186282@nnada.net> - 2026-07-16 01:39 -0400
              Re: Something Odd - "top" Delivers Nada When Run By Crontab The Natural Philosopher <tnp@invalid.invalid> - 2026-07-15 12:19 +0100
                Re: Something Odd - "top" Delivers Nada When Run By Crontab c186282 <c186282@nnada.net> - 2026-07-16 02:24 -0400

csiph-web