gpg and crpn
Peter S. May
me at psmay.com
Thu May 31 01:04:07 CEST 2007
Arsha Bertie wrote:
> i have been trying to run a script which encrypts and transfers files
> between 2 branches, i am using gpg for encryption, i have written a bash
> script and the script is working perfectly fine, but when i run it off a
> cron it doesnt want to work.
Are you also testing the command manually as root? If not, you'll
probably want to run the task from your own user instead (you can edit
your own user's cron tasks by doing "crontab -e").
> 30 * * * * root /backup/encrypt.sh > /tmp/ab.log
> Thr log file /tmp/ab.log is created after the cron executes but it is an
If you're trying to get the errors, you need to redirect stderr (i.e.
"2>"), not stdout (i.e., ">"). Try:
/backup/encrypt.sh 2> /tmp/ab.log
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 252 bytes
Desc: OpenPGP digital signature
Url : /pipermail/attachments/20070530/123c82d9/attachment.pgp
More information about the Gnupg-users