Subject: Re: [xsl] How to circumvent read-only permission From: "Norm Tovey-Walsh ndw@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 10 Apr 2022 14:13:07 -0000 |
> Let me be sure that I understand the full implications of this. Therebs nothing extraordinary about this. On a Mac or Unix system, run these commands: $ echo 'echo "hello world"' > myscript.sh $ chmod 400 myscript.sh $ ls -l myscript.sh -r-------- 1 ndw staff 19 Apr 10 15:08 myscript.sh Now you have bmyscript.shb that is a read-only file that bcannotb be executed: Next run: $ sh myscript.sh hello world Boom! Telling the filesystem that a file is not executable means you canbt use it as a command from the shell. You can still send it to any interpreter you like. You can run it as perl script, if you like: $ perl myscript.sh String found where operator expected at myscript.sh line 1, near "echo "hello world"" (Do you need to predeclare echo?) syntax error at myscript.sh line 1, near "echo "hello world"" Execution of myscript.sh aborted due to compilation errors. It just doesnbt work very well! XSLT processors are command interpreters just like bash, or perl, or python. Caveat executor. Be seeing you, norm -- Norman Tovey-Walsh <ndw@xxxxxxxxxx> https://nwalsh.com/ > It is undesirable to believe a proposition when there is no ground > whatsoever for supposing it is true.--Bertrand Russell [demime 1.01d removed an attachment of type application/pgp-signature which had a name of signature.asc]
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to circumvent read-only p, Roger L Costello cos | Thread | Re: [xsl] How to circumvent read-on, Dimitre Novatchev dn |
Re: [xsl] XSLT programs that blur t, G. Ken Holman g.ken. | Date | Re: [xsl] How to circumvent read-on, Dimitre Novatchev dn |
Month |