Return code of offlineimap
Tassilo Horn
tassilo at member.fsf.org
Thu Jan 7 09:57:01 GMT 2010
Ng Oon-Ee <ngoonee at gmail.com> writes:
>> So it seems, offlineimap returns a zero exit code when it cannot run.
>> Could that be changed to return non-zero exit codes when it couldn't
>> run properly, like 1 for already running, 2 for a network problem, 3
>> for a crash?
>
> I simply check using pidof /usr/bin/offlineimap
Sure, yau can also check for the lock file in the metadata directory,
but both are more workarounds than solutions IMO.
Bye,
Tassilo
More information about the OfflineIMAP-project
mailing list