system command
Fairlight
fairlite at fairlite.com
Mon Oct 31 14:47:52 PST 2005
With neither thought nor caution, Dennis Malen blurted:
> Mark,
>
> Thanks for your response.
>
> Is the problem really the echo command? When I apply that line directly to a
Knowing now what the context is, the problem is more likely to be a lack of
NOREDRAW than anything else. Maybe the two get interspersed somehow at
high speeds.
I still say capturing it TO A FILE with a redirect and then pouring over it
character by character -there- is the way to go. You are depending on
MSGBOX, but things may have gotten interpreted by the shell that is invoked
by calling SYSTEM, thus leaving you with an unacceptable (and useless)
command when you go through that route, where it is untouched internally
for MSGBOX because it's not open to meta interpolation, etc.
Tell you what, do this:
1) Redirect it to a file.
2) Examine the file. Does the string look correct in that file?
3) If so, stick "echo " (no quotes, just echo and a space) in front of
the contents of the line that was generated by your code. Then invoke
`sh filename` where filename is the file to which you redirected the
output in step 1. Does it work -then-?
If you can make it through step 3 and that works, then I suggest adding
NOREDRAW to your SYSTEM command. If it still doesn't work, then you should
bring it back here again and we'll look at your results.
mark->
More information about the Filepro-list
mailing list