08-17-2010
I would suggest downloading and compiling "netcat". Telnet does actually do some protocol handshaking and character mapping which can confuse things.
10 More Discussions You Might Find Interesting
1. SCO
Hello Every One. :D
Can any 1 tell how to configure unix so that only specified IP's can connect to that machine using telnet. :rolleyes: I guess there is also sum stratgy to limit it by time. such as from 9 a.m to 5 p.m. :eek:
This is imp 4 me. plz help
Thanks
Shaikh Naveed
Islamabad.... (5 Replies)
Discussion started by: shaikh.naveed
5 Replies
2. UNIX for Advanced & Expert Users
Hi!!..
I would like to know what is maximum character size for a command in the "sh" or "bourne" shell?
Thanks in advance..
Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies
3. Shell Programming and Scripting
Hi!!..
I would like to know what is maximum character size for a command in the "sh" or "bourne" shell?
Thanks in advance..
Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies
4. Shell Programming and Scripting
I have a file that contains several thousands rows. Here is an example.
^411912$
^487267$
^643776$
^682249$
^687737$
^692328$
^693767$
^695483$
^697289$
^757411$
^776688$
^778953$
^806123$
^872262$
^877877$
^839837$
^76666$
^72018$
^23330$ (3 Replies)
Discussion started by: justinb_155
3 Replies
5. Shell Programming and Scripting
Hi
I would just like to ask if there is a way for UNIX to ignore/overcome the 255 character limit of the command line?
My problem is that I have a really long line of text from a file (300+ bytes) which i have to "echo" and process by adding commands like "sed" to the end of the line, like... (5 Replies)
Discussion started by: agentgrecko
5 Replies
6. UNIX for Dummies Questions & Answers
I'm using a command that outputs the total size of the files that I've specified.
I'd like to introduce a character limit that appends an ellipsis to the lines that go beyond the specified amount.
du -chs {query} | sed 's!.*/!!' | awk '{print substr($0,0,25)""}'
That's what I have so far.... (4 Replies)
Discussion started by: Light_
4 Replies
7. Solaris
Hello All,
We have a working script which identifies and kills ipcs resources which havent been correctly killed during normal shutdowns.
It is working fine and dandy however there are some issues now.
Environment:
SunOS 5.10 Generic_148888-03 sun4u sparc SUNW,SPARC-Enterprise
... (4 Replies)
Discussion started by: icalderus
4 Replies
8. Shell Programming and Scripting
Hello,
I created the following (snippet from larger code):
echo -n "A1: "
read A1
VERIFY=$(echo -n $A1|wc -c)
if ; then
echo -e "TOO MANY CHARACTERS"
fi
echo -n "A2: "
read A2
echo -n "A3: "
read A3
echo -e "Concat: $B1/$B2/$B3"
Basically what it does is it... (4 Replies)
Discussion started by: jl487
4 Replies
9. Shell Programming and Scripting
In program, I want to telnet the ports present in telnet.txt file and capture screenshot of open port which is opened on new terminal.
Problems:
Escape character is '^]' and Connection closed by foreign host.
Loop is not working properly. It only take one ports and closed the connection.
... (9 Replies)
Discussion started by: sk151993
9 Replies
10. UNIX for Beginners Questions & Answers
I have a topic line in markdown that spans more than 80 characters that i need to add a line break. Markdown is simply treating the line break as a brand new line instead of continuing as a topic line.
Eg:
# This is a very long
line
Markdown interprets it as
This is a very long
line (4 Replies)
Discussion started by: dragonpoint
4 Replies
ppmtoicr(1) General Commands Manual ppmtoicr(1)
NAME
ppmtoicr - convert a portable pixmap into NCSA ICR format
SYNOPSIS
ppmtoicr [-windowname name] [-expand expand] [-display display] [-rle] [ppmfile]
DESCRIPTION
Reads a portable pixmap file as input. Produces an NCSA Telnet Interactive Color Raster graphic file as output. If ppmfile is not sup-
plied, ppmtoicr will read from standard input.
Interactive Color Raster (ICR) is a protocol for displaying raster graphics on workstation screens. The protocol is implemented in NCSA
Telnet for the Macintosh version 2.3. The ICR protocol shares characteristics of the Tektronix graphics terminal emulation protocol. For
example, escape sequences are used to control the display.
ppmtoicr will output the appropriate sequences to create a window of the dimensions of the input pixmap, create a colormap of up to 256
colors on the display, then load the picture data into the window.
Note that there is no icrtoppm tool - this transformation is one way.
OPTIONS
-windownamename
Output will be displayed in name (Default is to use ppmfile or "untitled" if standard input is read.)
-expandexpand Output will be expanded on display by factor expand (For example, a value of 2 will cause four pixels to be displayed for
every input pixel.)
-displaydisplay
Output will be displayed on screen numbered display
-rle Use run-length encoded format for display. (This will nearly always result in a quicker display, but may skew the colormap.)
EXAMPLES
To display a ppm file using the protocol:
ppmtoicr ppmfile
This will create a window named ppmfile on the display with the correct dimensions for ppmfile, create and download a colormap of up to 256
colors, and download the picture into the window. The same effect may be achieved by the following sequence:
ppmtoicr ppmfile > filename
cat filename
To display a GIF file using the protocol in a window titled after the input file, zoom the displayed image by a factor of 2, and run-length
encode the data:
giftopnm giffile | ppmtoicr -w giffile -r -e 2
BUGS
The protocol uses frequent fflush calls to speed up display. If the output is saved to a file for later display via cat, drawing will be
much slower. In either case, increasing the Blocksize limit on the display will speed up transmission substantially.
SEE ALSO
ppm(5)
NCSA Telnet for the Macintosh, University of Illinois at Urbana-Champaign (1989)
AUTHOR
Copyright (C) 1990 by Kanthan Pillay (svpillay@Princeton.EDU), Princeton University Computing and Information Technology.
30 July 1990 ppmtoicr(1)