Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Del command

Status
Not open for further replies.

dod123

Programmer
Dec 13, 2004
20
IL
Hello alll;

I am running a perl scripts on a remote server using telnet.
In order to terminate one of the commands i have to hit the DEL command to stop the command output,
I tried the ascii representation of del(177) but probably i don't know how to send ascii.

Thanks for yuor help.
 
Hi,

Mmm.. is this via Net::Terminal, or something like that?

Cheers

Andy
 
Just to be sure, that's the ascii code 177 is in octal, right? A quick google for a chart says 127/7F/177 in dec/hex/oct. I only bring it up b/c I normally see such things in hex or dec, but outside of *nix permissions, I rarely see anyone use octal.

- Andrew
Text::Highlight - A language-neutral syntax highlighting module in Perl
also on SourceForge including demo
 
Thanks, but I already tried all the representations
(eg. 127/7F/177 )
 
so something as simple as
Code:
$obj->put(String => chr(127))
doesn't work? Can you send other characters with the same method? Can you run the script locally and send the delete key without Net::Telnet?

- Andrew
Text::Highlight - A language-neutral syntax highlighting module in Perl
also on SourceForge including demo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top