Re: Cygwin, gawk, and serial ports.

2006-04-19 Thread Igor Peshansky
Matthew,

http://cygwin.com/acronyms/#PPIOSPE.  I'm redirecting this to the proper
list, and setting Reply-To: accordingly -- please make sure your mailer
respects it.

On Wed, 19 Apr 2006, Matthew Karas wrote:

 Hello,

   I've been trying to get awk to write to the serial port under cygwin.

   #script
   BEGIN{

  PRINT  hello world   /dev/com1;
 }
   #end script

   this doesn't work in awk but

   cat file.txt  /dev/com1

   works fine.

   Can you help me out?

   Thanks,
 Matthew Karas

WJFFM.  You'll have to be more specific about the nature of your problem.

In particular, you should provide all of the information requested in the
Cygwin problem reporting guidelines at http://cygwin.com/problems.html.
When you do, please make sure to *attach* the output of cygcheck -svr,
not include it inline.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Cygwin, gawk, and serial ports.

2006-04-19 Thread Igor Peshansky
On Wed, 19 Apr 2006, Igor Peshansky wrote:

 On Wed, 19 Apr 2006, Matthew Karas wrote:

  Hello,
 
I've been trying to get awk to write to the serial port under cygwin.
 
#script
BEGIN{
 
   PRINT  hello world   /dev/com1;
  }
#end script
 
this doesn't work in awk but
 [snip]

 WJFFM.  You'll have to be more specific about the nature of your problem.

I take that back.  It works for me if I use lowercase print, which is an
awk command.  The uppercase PRINT is interpreted as an (empty) awk
variable, and awk interprets a constant expression in statement context
just like C does -- i.e., it ignores it.  This is not Cygwin-specific;
you'll get the same results on Linux.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte.
But no -- you are no fool; you call yourself a fool, there's proof enough in
that! -- Rostand, Cyrano de Bergerac

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/