system command
Kenneth Brody
kenbrody at bestweb.net
Mon Oct 31 17:34:57 PST 2005
Quoting Fairlight (Mon, 31 Oct 2005 20:05:37 -0500):
> The honourable and venerable Fairlight spoke thus:
> > In the relative spacial/temporal region of
> > Mon, Oct 31, 2005 at 03:43:25PM -0500, Dennis Malen achieved the
> spontaneous
> > generation of the following:
> > > I would like to place the following string in a system command:
> > >
> > > echo "\033&oFvar searchnum=55555;CompileFile(\"260268.cs\");\015"
> > >
> > > When this line is executed on the command line it works perfectly.
> > > The following is my processing for "system":
> > >
> > > Then:le="echo";lg="\"\\033&o";pa="Fvar
> > > searchnum="{@rn{";CompileFile(\\\"260268.cs\\\");\\015\""
>
> I found your problem for you. You need the code segment:
> CompileFile(\\\\"260268.cs\\\\")
>
> You were previously ending up with a result of:
> CompileFile(\260268.cs\)
BTW, is there any reason the OP can't simply use SHOW RAW?
>
> You need an extra backslash on each end. Frankly, I'm not sure why
> myself.
[...]
> Ken, John, anyone: why is the original syntax incorrect? It's going to
> give me nightmares.
I haven't looked at it too clisely, but you have to remember that you
are passing it to the shell for execution, and not typing it at the
command line, so you may need to escape the backslashes one more level.
Remember, in order to do something like:
echo '\033'
you need to escape the backslash to get the shell to see it:
sh -c "echo '\\033'"
(Note: I have not actually verified the above, as I'm not on a *nix
box at the moment.)
--
KenBrody at BestWeb dot net spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com
More information about the Filepro-list
mailing list