Try this one instead
s x = $$^RUNCMD("grep strings ""logfile.txt"" | gawk '{ print $6 $8}'", 1)Regards, Timur
On 17.05.2004 18:26, Mat Gadd said the following:
oops, that didn't make any sense, did it?
when i w ^RUNCMD("grep strings ""logfile.txt"" | gawk '{ print $6 $8}'", 0) it works OK, but *not* when i s x = ^RUNCMD("grep strings ""logfile.txt"" | gawk '{ print $6 $8}'", 1)
"Mat Gadd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
I see, that outputs straight to screen, and I've looked in the file, I appear to have the option to have it returned as a GlobalCharacterStream?
When I run: s x = ^RUNCMD("grep strings ""logfile.txt"" | gawk '{ print $6 $8}'", 1)
it works great, I get all the output in my page, but this: s x = ##class(%GlobalCharacterStream).%New() s x = ^RUNCMD("grep strings ""logfile.txt"" | gawk '{ print $6 $8}'", 1) d x.Rewind() While (x.AtEnd = 0) { Set len = 100 Write x.Read(.len) }
Fails on the "s x = ^RUNCMD..." line...?
