Thanks Samuel for the answer
as you can see on the line I execute, I include the full paths necessary for
the execution
regarding permissions, this task is a root's task, so, the referenced key ID
in included within the trusted chain for root.
$str_execute = "cd /tmp/backup && /bin/echo apassword | /usr/bin/gpg -se
--passphrase-fd 0 -r [EMAIL PROTECTED] /
tmp/backup/$filename";
exec($str_execute);
Regards
Enediel
Linux user 300141 Debian GNU/Linux
From: [EMAIL PROTECTED] (Samuel ]slund)
Reply-To: GnuPG Users <[email protected]>
To: GnuPG Users <[email protected]>
Subject: Re: gpg on cron task
Date: Sat, 4 Feb 2006 09:19:46 +0100
On Sat, Feb 04, 2006 at 02:23:47AM +0000, enediel gonzalez wrote:
> Hello:
> I use debian sarge and I need to encrypt and decrypt automatically
backup
> files using gpg
>
<<<< Snip >>>>
>
> When I execute the script manually as root, I obtain the encrypted file,
> but if I put the same script as a cron's task, the whole script works
> perfectly except the encryption process, and I not receive any error.
Have you checked if the script has access to the key?
(E.g. Permission or path problems.)
HTH
//Samuel
_______________________________________________
Gnupg-users mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnupg-users
_______________________________________________
Gnupg-users mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnupg-users