Re: Something Odd - "top" Delivers Nada When Run By Crontab
rbowman <[email protected]>
| Newsgroups | comp.os.linux.misc |
|---|---|
| Message-ID | <[email protected]> |
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.