Marty1985 has asked for the wisdom of the Perl Monks concerning the following question:

Has any one heard of a nifty little communications module called Comm.pl? If you have read on: I was modding a script here to run on a different machine, turned out to be relatily simple changing a few directories, then when i go to run it i remember, "hey wait this calls comm.pl" which only runs on unix OS`s and not windows, and is over my head as far as my knowledge of unix systems goes. Was wandering if anyone knows of a modded version of this file for windows, or how id go about modding it. Heres the code basically, a way to create the psedo-tty in windows so i could tack it on to this script would be good as this script stops at "cannot create a psuedo tty on your os" http://cpan.binarycompass.org/modules/by-module/Comm.pl/

Replies are listed 'Best First'.
Re: Comm.pl For windows system
by marto (Cardinal) on Oct 03, 2005 at 12:29 UTC
    As far as I remember Comm.pl is based on a previous work by merlyn.
    I am having difficulty understanding what your actual qustion is.
    Have you looked at the code?

    I notice that this is your first post (under this user anyway). Read How do I post a question effectively? if you have not already done so.

    Martin
Re: Comm.pl For windows system
by puploki (Hermit) on Oct 03, 2005 at 12:18 UTC

    Is it just that comm.pl is a wrapper around another Perl module?

    Perhaps you could post the code so others can see what's going on - after all, I can rename any script to anything and it won't make much sense to others, even if they are familiar with its internals.

    Update:I think that i'm blind or the OP has updated their post to include a code link - either way, ignore me :)

Re: Comm.pl For windows system
by Anonymous Monk on Oct 03, 2005 at 12:27 UTC
    The main problem is uses alot of unix shell commands and things as far as i can see, it errors at "do not know how to create a psuedo-tty on your os" I cant put the code here as it is pages long and i cant format it to display correctly, however here is a link to it: http://cpan.binarycompass.org/modules/by-module/Comm.pl/

      Eeeep, I don't think that's going to work well under Windows - it references (as you said) /dev/tty etc. a lot and all sorts of other *NIX stuff.

      Is there anything specific in your own script that you're trying to do (like run a server type application) in your script that you can use other cross-platform modules and techniques for?

        Its trying to send specific commands to a machine, iv had a closer look and decided since i have to idea what the hell most of that is doing, im gonna scrap the current script and write my own that does not reference Comm.pl, i think its best lol