Encrypting Cron job email output.

simon saulinux at safe-mail.net
Tue Aug 24 15:45:58 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 23 Aug 2004 22:15, Atom 'Smasher' wrote:
> On Mon, 23 Aug 2004, Werner Koch wrote:
> >> /usr/sbin/chkrootkit 2>&1 | mail -s "chkrootkit
> >> output"saulinux at safe-mail.net
> >
> > insert "gpg -ear somekey --always-trust" into the pipeline.
>
> ==================
>
> that will only encrypt stdout, leaving stderr (if there is any)
> unencrypted. solve that by running:
>  	cron-job-command 2>&1 | gpg --trust-model always -ear somekey
>
> ("--trust-always" is deprecated, use "--trust-model always")
> (also, as a matter of habit, options before commands (mostly))
here is the command and output from a shell ;
[root at localhost simon]# /usr/sbin/chkrootkit 2>&1 | gpg 
- --trust-model always -ear F679C9E6223DC22B | mail -s "chkrootkit 
output" saulinux at safe-mail.net
gpg: F679C9E6223DC22B: skipped: public key not found
gpg: [stdin]: encryption failed: public key not found
Where am I going wrong? Is the command OK? My public key is valid 
and on my keyring, why isn't it being seen?
Simon.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBK0agYreSoOlOIpIRAnEfAKCJMyF1GP2msr8s+LuM+ncMEjFu0QCg6XcJ
2MoK9Tr3+S+3nSd0bv8eNkg=
=BF3A
-----END PGP SIGNATURE-----



More information about the Gnupg-users mailing list