can't run script

Brian V Bonini b-bonini at cox.net
Sun Dec 21 17:14:34 CET 2003


On Sun, 2003-12-21 at 15:19, Atom 'Smasher' wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> > #!/bin/tcsh
> >
> > gpg -d qce.asc > qce
> > chmod 700 qce
> > qce
> > rm -f qce
> >
> > If I run this while in the dir containing the script all is fine
> > but if I run it from elsewhere I get:
> >
> > gpg: can't open `qce.asc'
> > gpg: decrypt_message failed: file open error
> >
> > I thought it was just a permissions thing so I 777'd everything just to
> > see but still get the same thing.
> ======================
> 
> either the top line of the script should be:
> 	cd /correct/directory/
> or include the full path of all files you want to play with.
> 
> also, instead of `chmod` after the file is created, use `umask` before
> it's created.

Well that worked but I could of sworn I also tried $HOME/bin/file...
Thanks!


-- 
Brian
GnuPG // KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
Key fingerprint = 9A80 8714 A9C8 F26A 2928  CF3C 2C35 0110 04A4 F0DC
______________________________________________________________________
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
GnuPG: http://gnupg.org
http://www.biglumber.com/x/web?qs=0x2C35011004A4F0DC
Linux Registered User #339825 at http://counter.li.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : /pipermail/attachments/20031221/b584412e/attachment.bin


More information about the Gnupg-users mailing list