[colug-432] Where do cron jobs store their generated stdout while running?

Jeff Frontz jeff.frontz at gmail.com
Wed Feb 10 12:32:33 EST 2010


Try "lsof" on the process.  My suspicion is that it actually writes to
a file since the mail from a cron job is sent conditionally (based on
whether or not there was any output).


On Wed, Feb 10, 2010 at 12:22 PM, Rob Funk <rfunk at funknet.net> wrote:
> On Tuesday 09 February 2010 10:19:18 pm Rob Stampfli wrote:
>> A stupid question, the answer of which has proved to be more elusive
>> than I would have first thought:  When a cron job completes, its stdout
>> and stderr are emailed to the user running the job.  I have a job
>> that runs for a prolonged period of time and for which I'd occasionally
>> like to review its output while it is in progress, but I can't figure
>> out where to look for it.  The executable itself is sending its output
>> to a pipe.  There appears to be no file in /tmp or /var/tmp that is
>> accumulating this data, but it must be stored somewhere until the job
>> completes.  Anyone know where?
>
> I think it just gets buffered in memory. That's the normal state of affairs
> with pipes.



More information about the colug-432 mailing list