From: Roland G. <rgi...@cp...> - 2008-02-06 13:48:05
|
Can you post the relevant parts of the script? PTY-handling is hard, that's why IO::Tty is doing it in C. And you have no way of installing IO::Tty locally? If you worry about distribution, have a look at PAR, the Perl Archiver, on CPAN which lets you package required modules, even binary ones, with your script. Servus, Roland Carlyle Sutphen wrote: > Hello, > > I am a system administrator in a large corporation which > has not included Expect.pm and its siblings IO::Tty and IO::Stty > in the packaging. > > I have written a perl script which creates a terminal for a child > process which uses the terminal rather than standard IO; > much as expect does but very simply and of very limited > scope. > > This script works fine on AIX but not on SunOS or Linux. > > I need to know how to get the name of the slave side after > opening the control side (/dev/ptc on AIX and /dev/ptmx on > the others). On AIX ttyname does this for me but it returns > "Inappropriate ioctl for device" elsewhere. > > I don't mean to take up time and space on this list but I have been > looking unsuccessfully for a suitable mailing list more suited to > my problem. > > Thank you for any pointers. > > Best regards, > Carlyle > -- > > Informationen (einschließlich Pflichtangaben) zu einzelnen, innerhalb der EU tätigen Gesellschaften und Zweigniederlassungen des Konzerns Deutsche Bank finden Sie unter http://www.db.com/de/content/pflichtangaben.htm. Diese E-Mail enthält vertrauliche und/ oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. > > Please refer to http://www.db.com/en/content/eu_disclosures.htm for information (including mandatory corporate particulars) on selected Deutsche Bank branches and group companies registered or incorporated in the European Union. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Expectperl-discuss mailing list > Exp...@li... > https://lists.sourceforge.net/lists/listinfo/expectperl-discuss > |