can't run script

Brian V Bonini b-bonini at cox.net
Sun Dec 21 17:47:51 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.
> 

BTW: I don't know of anyway to have umask activate execute permissions
on a file, do you? I thought 0 will only do rwx on directories. At least
that's how it works on my system 027 will give rw-r-----


-- 
Brian        GnuPG -> KeyID: 0x04A4F0DC | URL: www.gfx-design.com/keys
                                          Key Server: pgp.mit.edu
======================================================================
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/17adad4a/attachment.bin


More information about the Gnupg-users mailing list