Jason Stelzer on 30 Apr 2010 12:45:33 -0700


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

Re: [PLUG] Script doesn't seem to run in cron...


It isn't so much that you 'cant run cron' so much as 'cron is what
triggers the execution of other things'.

Technically, as root you could kill your existing cron process and
invoke another on the command line. It wouldn't do much, but that's my
point.

As Stephen correctly points out, if you have mail set up correctly on
the box, any output created during a cron process is spooled to a
buffer and mailed to the user cron executed the command as, or
whatever the MAILTO environment was set to. Your cron man page has
more details. Setting up something simple and a smarthost is usually
good enough to get the output of cron going somewhere other than the
dead letter queue.

Yes, I was feeling pedantic. I bring nothing to the table, but this
did kill the time for me while I waited for an obnoxious compile to
finish.

On Fri, Apr 30, 2010 at 3:35 PM, Stephen Gran <steve@lobefin.net> wrote:
> On Fri, Apr 30, 2010 at 07:23:58AM -0700, Carl Johnson said:
>> This raises a question for me. Google hasn't been much help. How can
>> you manually run cron from the command line and show it's output?
>
> You can't run cron from the command line.  You can however capture the
> output by having working mail on the machine and sending the output of
> your cronjob to a working mailbox.
>
> Cheers,
> --
>  --------------------------------------------------------------------------
> |  Stephen Gran                  | You are destined to become the          |
> |  steve@lobefin.net             | commandant of the fighting men of the   |
> |  http://www.lobefin.net/~steve | department of transportation.           |
>  --------------------------------------------------------------------------
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
>



-- 
J.
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug