Re: Re: [pimppa-users] Bugs and wish list
Brought to you by:
iwronsky
|
From: boz b. <bo...@po...> - 2001-12-11 03:17:08
|
>
> > when p_maint is run from crontab, jpeginfo
> will
> > mark all new files as corrupt. This probably
> has more
> > to do with jpeginfo, than pimppa.
>
> If you're using settings in
> 'example_types.sql',
> you need jpeginfo v1.5a or later. It should be
> the
> one by Timo Kokkonen. If you have that, I
> don't
> know whats wrong then.
>
Hey, I figured this bug out.
sql/example_types.sql contains this line for example
INSERT INTO p_types VALUES ('JPG','jpeginfo -c',0,'','jpegoptim','jpg');
I found that ptest was calling jpeginfo by the command line
"jpeginfo -c /pathtofile > tmpfile" 2>dev/null
It was after I removed the 2>/dev/null that I saw the error
"command not found"
Then I realized that in crontab, at least in my crontab, the full path to an executable must be used in a command or else it won't find it. Crontab is a limited environment
and doesn't know what the paths to executables are unless you tell it.
Since ptest couldn't read anything from the tmpfile it assumed the file tested bad and marked it as such.
Changing sql/example_types.sql to the following made ptest run ok from crontab
INSERT INTO p_types VALUES ('JPG','/usr/local/bin/jpeginfo -c',0,'','/usr/local/bin/jpegoptim','jpg');
Thanks Again
Boz
---
V.I.P. Chat - Miro Zbirka
11.12.2001 od 14:00 na
http://chat.volny.cz
|