11-17-2011
Yes, I want the script to accept incoming connections over telnet and take one line of input, process that input, display the script's standard-out over the telnet connection. I still don't see how netcat pipes items into my script AND then pipes back the results.
I really don't want root running this script for security reasons, hence why I chose port 1234 for my example.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi is there any way to connect through com port to using shell script.
Thanks in advance. (1 Reply)
Discussion started by: yhacks
1 Replies
2. Shell Programming and Scripting
Hi,
I would like to create a simple script that will telnet a number of IP and Ports one after the other to confirm connectivity to those addresses.
I don't need to log on, just output to a file what the response is, i.e Escape Character, connectivity refused etc.
Complete newbie to... (6 Replies)
Discussion started by: asou
6 Replies
3. Solaris
Hi Everyone,
In my environment, I have few T5220. On the iLOM Management Card, I have both Network and Serial port are cabled, I don't have any issues while I try to connect using Network Management port, but when I try to connect the serial port for the same server which is actually connected... (3 Replies)
Discussion started by: bobby320
3 Replies
4. IP Networking
Hi,
I am trying to set up a dev environment and I have Ubuntu server (10.16.1.92) and a CentOS VM (10.16.3.235) on this. On the CentOS I have a program running on port 5433. Now my problem is that I am unable to telnet this port from another Windows server whereas I can telnet port 22 from... (5 Replies)
Discussion started by: rishav
5 Replies
5. IP Networking
i want to kill a tcp connection by killing its pid
with netstat -an i got the tcp ip connection on port 5914
but when i type ps -a or ps-e there is not such process running on port 5914
is it possible that because i do not log on with proper user account i can not see that process running? (30 Replies)
Discussion started by: alinamadchian
30 Replies
6. Solaris
Hello,
I have an unloaded T5140 machine and want to access the ILOM for the first time and subsequently the network port after that., and then load Solaris 10 the final January 2011 build.
The first part is what confuses me -the cabling.
I am coming from a Windows machine (w/appropriate... (5 Replies)
Discussion started by: joboy
5 Replies
7. Solaris
please find the below o/p for your reference
bash-3.00# fcinfo hba-port
HBA Port WWN: 21000024ff295a34
OS Device Name: /dev/cfg/c2
Manufacturer: QLogic Corp.
Model: 375-3356-02
Firmware Version: 05.03.02
FCode/BIOS Version: BIOS: 2.02; fcode: 2.01;... (3 Replies)
Discussion started by: sb200
3 Replies
8. UNIX for Beginners Questions & Answers
I need a script on which if i will pass the port number and the host name as external parameter then it should respond me if the port is open or not
thread moved (0 Replies)
Discussion started by: patitapaban
0 Replies
9. UNIX for Beginners Questions & Answers
hi,
i would like to create a bash script that check which port in my Linux server are closed (not in use) from a specific range, port range (3000-3010).
the print output need to be only 1 port, and it will be nice if the output will be saved as a variable or in same file.
my code is:
... (2 Replies)
Discussion started by: yossi
2 Replies
LEARN ABOUT REDHAT
x3270if
X3270IF(1) General Commands Manual X3270IF(1)
NAME
x3270if - command interface to x3270, c3270 and s3270
SYNOPSIS
x3270if [ -v ] action [ ( param [ ,... ] ) ]
x3270if [ -v ] -s field
x3270if -i
DESCRIPTION
x3270if provides an interface between scripts and the 3270 emulators x3270, c3270, and s3270.
x3270if performs one of three functions. In action mode (the default), it passes a single action and optional parameters to the emulator
for execution; the result of the command is written to standard output. In status mode, it reports to standard output the value of one of
the emulator's status fields. In iterative mode, it forms a continuous conduit between a script and the emulator.
OPTIONS
-v Turns on verbose debug messages, showing the literal data that is passed between the emulator and x3270if.
-s field
Puts x3270if in status mode: it outputs the value of an emulator status field. Field is an integer in the range 0 through 11. The
value 0 is a no-op and is used only to return exit status indicating the state of the emulator. The indices 1-11 and meanings of
each field are documented on the x3270-script(1) manual page.
-i Puts x3270if in iterative mode. Data from x3270if's standard input is copied to the emulator's script input; data from the emula-
tor's script output is copied to x3270if's standard output. x3270if runs until it detects end-of-file on its standard input or on
the output from the emulator. (This mode exists primarily to give expect(1) a process to run, on systems which do not support bidi-
rectional pipes.)
EXIT STATUS
In action mode, if the requested action succeeds, x3270if exits with status 0. If the action fails, x3270if exits with status 1. In iter-
ative mode, x3270if exits with status 0 when it encounters end-of-file. If there is an operational error within x3270if itself, such as a
command-line syntax error, missing environment variable, or an unexpectedly closed pipe, x3270if exits with status 2.
ENVIRONMENT
x3270, c3270, and s3270 use a pair of pipes for communication with each child process. The values of the file descriptors for these pipes
are encoded as text in two environment variables, which are required by x3270if:
X3270OUTPUT
Output from the emulator, input to the child process.
X3270INPUT
Input to the emulator, output from the child process.
SEE ALSO
x3270(1), c3270(1), s3270(1), x3270-script(1)
COPYRIGHT
Copyright 1999, 2000 by Paul Mattes.
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission
notice appear in supporting documentation.
01 May 2002 X3270IF(1)