<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Perl to send cntl c and cntl d in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-to-send-cntl-c-and-cntl-d/m-p/5012261#M426720</link>
    <description>I have taken the low road and went with a quick expect script called by perl</description>
    <pubDate>Thu, 23 Nov 2006 21:36:01 GMT</pubDate>
    <dc:creator>Ratzie</dc:creator>
    <dc:date>2006-11-23T21:36:01Z</dc:date>
    <item>
      <title>Perl to send cntl c and cntl d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-to-send-cntl-c-and-cntl-d/m-p/5012258#M426717</link>
      <description>I am using the telnet module in perl to telnet to a switch&lt;BR /&gt;The funky thing about this switch is that I need to send a cntrl D to get a prompt, then I type a command, and to send the command I need to type a control C.&lt;BR /&gt;How do I incorporate this in my script.&lt;BR /&gt;Or convert it to actual control characters.&lt;BR /&gt;I thought there was a way to do this in vi...</description>
      <pubDate>Fri, 03 Nov 2006 17:16:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-to-send-cntl-c-and-cntl-d/m-p/5012258#M426717</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2006-11-03T17:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Perl to send cntl c and cntl d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-to-send-cntl-c-and-cntl-d/m-p/5012259#M426718</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You can generate a Ctrl_C with "\003" and Ctrl_D with "\004".&lt;BR /&gt;&lt;BR /&gt;# echo "\003" | cat -etv&lt;BR /&gt;&lt;BR /&gt;# perl -e 'print "\003"' | cat -etv&lt;BR /&gt;&lt;BR /&gt;If you want to create these characters in a 'vi' session, type Ctrl_v and then press either Ctrl_C or Ctrl_D.  See the 'ascii(5)' manpages for more information.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 03 Nov 2006 19:22:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-to-send-cntl-c-and-cntl-d/m-p/5012259#M426718</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-11-03T19:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Perl to send cntl c and cntl d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-to-send-cntl-c-and-cntl-d/m-p/5012260#M426719</link>
      <description>perl does have a much nicer way to write that:&lt;BR /&gt;&lt;BR /&gt;# perl -le 'print "\cC\cD"'&lt;BR /&gt;&lt;BR /&gt;# perl -le 'print "\cC\cD"' | perl -nle'print join " ", unpack"C*",$_'&lt;BR /&gt;3 4&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Sat, 04 Nov 2006 02:56:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-to-send-cntl-c-and-cntl-d/m-p/5012260#M426719</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-11-04T02:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Perl to send cntl c and cntl d</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-to-send-cntl-c-and-cntl-d/m-p/5012261#M426720</link>
      <description>I have taken the low road and went with a quick expect script called by perl</description>
      <pubDate>Thu, 23 Nov 2006 21:36:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-to-send-cntl-c-and-cntl-d/m-p/5012261#M426720</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2006-11-23T21:36:01Z</dc:date>
    </item>
  </channel>
</rss>

