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

Good fortune
PSM

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Gnupg-users mailing list
[email protected]
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to