On 08/26/2018 08:11 AM, Eli Schwartz via arch-general wrote:
> Why do you think run-parts "should" execute this file as a cron script?
> Is there some wonderful shebang in the "avantfax_hourly" file which says
> "execute this script as a cron executable"?
Yes, of course it does,
$ head -n 2 /sr
Hi Eli,
> I would think that emulating the well-known behavior of "for actual
> shell scripts which do not have shebangs, try using /bin/sh if no
> interpreter is detected" would be a reasonable thing to do.
It would be nice if that died out, just as the `first char is ':'
v. '#'' test in the day
On 8/26/18 9:48 AM, SET wrote:
> Le dimanche 26 août 2018 15:11:36 CEST Eli Schwartz via arch-general a écrit :
>> some wonderful shebang
>
> Ha ! My wonderful shebang was "#/bin/sh" instead of "#!/bin/sh".
>
> After correcting the typo, run-parts does not complain.
Yes, that helps if the script
Le dimanche 26 août 2018 15:11:36 CEST Eli Schwartz via arch-general a écrit :
> some wonderful shebang
Ha ! My wonderful shebang was "#/bin/sh" instead of "#!/bin/sh".
After correcting the typo, run-parts does not complain.
Thanks.
On 8/26/18 5:49 AM, David C. Rankin wrote:
> On 08/26/2018 03:37 AM, Ralph Corderoy wrote:
Testing manually works fine:
# ./phb.php
>> It's not getting that far.
>
> I bet you would as root. The file is actually http:http owned, e.g.
>
> -rwxr-xr-x 1 http http 988 Sep 14 2016
On 08/26/2018 03:37 AM, Ralph Corderoy wrote:
>>> Testing manually works fine:
>>>
>>> # ./phb.php
> It's not getting that far.
I bet you would as root. The file is actually http:http owned, e.g.
-rwxr-xr-x 1 http http 988 Sep 14 2016 /srv/http/avantfax/includes/phb.php
So running as root h
Hi David,
> > Cron run-parts /etc/cron.hourly
> >
> > run-parts: failed to exec /etc/cron.hourly/avantfax_hourly: Exec format
> > error
> > run-parts: /etc/cron.hourly/avantfax_hourly exited with return code 1
> >
> > The cron job is:
> >
> > /etc/cron.hourly/avantfax_hourly
> >
> > # runs
Le dimanche 26 août 2018 08:13:35 CEST David C. Rankin a écrit :
> Cron run-parts /etc/cron.hourly
>
> run-parts: failed to exec /etc/cron.hourly/avantfax_hourly: Exec format
> error run-parts: /etc/cron.hourly/avantfax_hourly exited with return code 1
>
I had a similar error on August 17 on
8 matches
Mail list logo