[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: where does command output go



At Sun, 09 Nov 2025 18:17:25 +0000 fxkl47BF@protonmail.com wrote:

>
> On Sun, 9 Nov 2025, Nicolas George wrote:
>
> > fxkl47BF@protonmail.com (HE12025-11-09):
> >> if i wanted to have the same results as my command above
> >> but wanted to do it so it didn't consume memory for storage
> >> and i didn't want to manage files
> >> what might a good alternate strategy be
> >> is there a replacement for mail that uses file storage
> >
> > Reality check: are you saying that you are concerned by the memory usage
> > of storing the output of your command but want to send it by mail?
>
> yes
>
> > Are
> > there exceptional constraints that we do not know about?
>
> single board computers with limited memory

Well, the most limited RAM SBC *I* know of is the Beagleboards: the
BeagleboardBlack and Pocket Beagle as 1/2Gig.  Early model RPis have 1Gig of
RAM.  Note: it is possible to include swap space on these machines on their
uSD cards (but probably not recomended).

Compaired to to typical Intel-ish desktop or laptop, this might seem rather
limited. But I am not so sure. Are you running a full desktop environment on
the machine? I have run a full but lightweight desktop environment on a Pi2
with 1Gig of RAM. Right now, the Pi2 is a network print server. I regularly
send arbitary large print jobs. The 1gig of RAM is more than enough to handle
the short term pipelines used by CUPS to print stuff, including PDF => PS
conversion as needed.

You talk about "long running", but that says nothing about the volumne of
output.  Long running does not equal high output volume.

Here is an option:

A cron job that triggers the "long running jobs" to gracefully shutdown and
then restarts it.  You will get multiple "shortened" emails instead on one
ginormous e-mail,  Each shortened message will get flushed from memory and
land in a E-mail inbox queue file.

>
>
>
>

--
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller@deepsoft.com       -- Webhosting Services



Reply to: