Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Oct 2005 03:52:53 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        Bob Hall <rjhjr@cox.net>, freebsd-questions@freebsd.org
Subject:   Re: Crontab and GPG?
Message-ID:  <20051026075253.GA90196@xor.obsecurity.org>
In-Reply-To: <20051025231057.GA84395@kongemord.krig.net>
References:  <20051025131352.217826@bob> <20051025184502.GA83689@kongemord.krig.net> <20051025190017.GF63163@xor.obsecurity.org> <20051025231057.GA84395@kongemord.krig.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--ReaqsoxgOBHFXBhH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Oct 25, 2005 at 07:10:57PM -0400, Bob Hall wrote:
> On Tue, Oct 25, 2005 at 03:00:18PM -0400, Kris Kennaway wrote:
> > On Tue, Oct 25, 2005 at 02:45:02PM -0400, Bob Hall wrote:
> > > On Tue, Oct 25, 2005 at 01:13:52PM -0500, Robert Wall wrote:
> > > > Hello!  I'm attempting to run GPG from cron, and it's not working. =
 I can run the script from the command line, and all works perfectly.  When=
 I try to run it from cron, however, it doesn't work.  The crontab calls th=
is script, called "pgpdecrypt" with the following crontab line:
> > > >=20
> > > > */1    *       *       *       *       root    /bin/bash /etc/pgpde=
crypt
> > > >=20
> > > > The /bin/bash wasn't originally there; I added it to make sure that=
 the script was using the correct shell.  Still no luck.  Here's the script=
 that it calls:
> > > >=20
> > > > echo >> /etc/pgpdecrypt.logger "PGP Decrypter Starting"
> > >=20
> > > Take the "/bin/bash" out of your crontab. Put
> > > 	#!/bin/bash
> > > at the beginning of your script.
> >=20
> > What do you think that will do to help?  It's a NOP, so it can't fix
> > the problem (which is because of bad assumptions about PATH, per my
> > other message).
>=20
> Well, I don't know whether "#!" is a NOP or not. It does tell the script
> which executable to use in executing the script.

Yeah, which he was already doing explicitly (see above) ;-)

Kris

--ReaqsoxgOBHFXBhH
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDXzXUWry0BWjoQKURAgsQAKDSY+uwH3/1OwFoCauZATZvECfyUwCfXqtv
vPc8ZweEvJbhHb95wA+36+U=
=lMEG
-----END PGP SIGNATURE-----

--ReaqsoxgOBHFXBhH--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051026075253.GA90196>