If i use only

hProcess1 = SHELL sCommand WAIT

i see in Gambas console the stdout.
i try to find a way to keep

hProcess1 = SHELL sCommand WAIT

and read stdout as Gambas console does.

-- 
Regards,
Demosthenes Koptsis.
--- Begin Message ---
On Mon, 2010-12-27 at 10:20 +1100, Ian Haywood wrote:
> On Mon, Dec 27, 2010 at 4:46 AM, Demosthenes Koptsis
> <demosthen...@gmail.com> wrote:
> > Hello and merry Christmas,
> >
> > i have these lines of code
> >
> > -----------
> >  sCommand = "/opt/avast4workstation-1.3.0/bin/avast -r " &
> > txtVirusTempFolder.Text & "/avast-report.txt" & " -ac -t A " &
> > txtVirusTempFolder.Text
> >
> >  PRINT sCommand
> >
> >  hProcess1 = SHELL sCommand WAIT FOR INPUT OUTPUT AS "AntiVirRun"
> > -----------
> >
> > After that line the hProcess1 is NULL and i get NULL object in
> >
> > PUBLIC SUB AntiVirRun_Read()
> Drop the "WAIT" keyword.

Actually i want the WAIT word.

I want to WAIT until the command is finished but in meanwhile i want to
be capable to read the stdout.

i also tried a clumsy solution like that,

  hProcess1 = SHELL sCommand FOR INPUT OUTPUT AS "AntiVirRun"
  WHILE (hProcess1.Running)
  WEND

but also have no success to read the stdout with AntiVirRun_Read()



-- 
Regards,
Demosthenes Koptsis.

--- End Message ---
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to