Gambas2 2.21 rev3300

this example is not working in Ubuntu 10.04 AMD64

PUBLIC SUB Main()
  
' Prints the messages sent to a pipe

DIM hFile AS File
DIM sLine AS String

hFile = PIPE "/tmp/FIFO1" FOR INPUT

WHILE NOT Eof(hFile)
  LINE INPUT #hFile, sLine
  PRINT sLine
WEND

END

The pipe is created ok!
But if i make a ls > /tmp/FIFO1

nothing is appeared in console and program terminates.

if i change to
WHILE TRUE

i get the ls results to console and
i get an error

System error. Inappropriate ioctl for device.



-- 
Regards,
Demosthenes Koptsis.


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to