From owner-freebsd-questions@FreeBSD.ORG Tue Oct 25 19:00:29 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA23416A42C for ; Tue, 25 Oct 2005 19:00:29 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8503343D7E for ; Tue, 25 Oct 2005 19:00:19 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 49CAF1A3C2F; Tue, 25 Oct 2005 12:00:19 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 8C95651248; Tue, 25 Oct 2005 15:00:18 -0400 (EDT) Date: Tue, 25 Oct 2005 15:00:18 -0400 From: Kris Kennaway To: Bob Hall , freebsd-questions@freebsd.org Message-ID: <20051025190017.GF63163@xor.obsecurity.org> References: <20051025131352.217826@bob> <20051025184502.GA83689@kongemord.krig.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aPdhxNJGSeOG9wFI" Content-Disposition: inline In-Reply-To: <20051025184502.GA83689@kongemord.krig.net> User-Agent: Mutt/1.4.2.1i Cc: Subject: Re: Crontab and GPG? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2005 19:00:30 -0000 --aPdhxNJGSeOG9wFI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 c= an run the script from the command line, and all works perfectly. When I t= ry to run it from cron, however, it doesn't work. The crontab calls this s= cript, called "pgpdecrypt" with the following crontab line: > >=20 > > */1 * * * * root /bin/bash /etc/pgpdecrypt > >=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 tha= t 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. 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). Kris --aPdhxNJGSeOG9wFI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDXoDBWry0BWjoQKURAoRZAKD6PZjmb7UXdY4d6CiJiNV1j14+dgCeMhXV XY0K2prvQWy/qlJxYrX4lpM= =EBR4 -----END PGP SIGNATURE----- --aPdhxNJGSeOG9wFI--