For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > December 2006 > inter process communication help









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author inter process communication help
alih110

2006-12-04, 12:33 am

Hello,

The following piece of perl code works on linux but does not work on cygwin (windows) =>
-----------------------
my $results = `echo "$randString" | $resGen `
-----------------------

where $ranstring contains a few strings (one on each line) and $resgen is an executable which needs to process the contents of $randstring and return the results to $results.

One of the things that prevents this code to work on cygwin (windows) is that it has issues with the newline characters in $randstring.

What would be the best solution to make this code work on windows as well as linux?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com