[TriLUG] e2fsck under cron gets retcode=8 operational error

Igor Partola igor at igorpartola.com
Tue Sep 18 16:23:32 EDT 2012


Not familiar with fsck or cron enough to say for sure, but could this have
something to do with attaching or not attaching a tty? Login vs
non-interactive shell? Are you getting the stderr and stdout from the
failed process emailed to you by cron?

Igor

On Tue, Sep 18, 2012 at 3:37 PM, Kevin Hunter <hunteke at earlham.edu> wrote:

> At 3:20pm -0400 Tue, 18 Sep 2012, Joseph Mack na3t wrote:
>
>> Since the script runs fine from the CLI, I'm wondering if there's
>> something about running fsck under cron. I execute fsck with the
>> pathname (/usr/sbin/e2fsck) so there's no problem finding the
>> executable.
>>
>
> I don't generally need to use cron for my daily work, so when I do, I'm
> often bitten by my assumptions from my CLI environment.  What you might do
> for debugging purposes to write a shell script and spit out the entire
> environment to a file.  Then you can read the file, try to recreate the
> environment, and see if you can make fsck fail "while you watch".
>
> Cheers,
>
> Kevin
>
> --
> This message was sent to: Igor Partola <igor at igorpartola.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that
> address.
> TriLUG mailing list : http://www.trilug.org/mailman/**listinfo/trilug<http://www.trilug.org/mailman/listinfo/trilug>
> Unsubscribe or edit options on the web  : http://www.trilug.org/mailman/**
> options/trilug/igor%**40igorpartola.com<http://www.trilug.org/mailman/options/trilug/igor%40igorpartola.com>
> TriLUG FAQ          : http://www.trilug.org/wiki/**
> Frequently_Asked_Questions<http://www.trilug.org/wiki/Frequently_Asked_Questions>
>



More information about the TriLUG mailing list