- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Telnet to port
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 05:07 AM
05-29-2002 05:07 AM
Telnet to port
I am trying to set up a telnet session to a port.
i.e. telnet 191.1.1.111 5729.
N class running 11.00
Basically I am trying to push some users straight to an application with no Unix login.
I have defined the port in services: -
vdx 5721/tcp # Test for vdx
I have set it in inetd.conf:-
vdx stream tcp nowait vdx /bin/ksh ksh -c /avro/DATA/VDX
inetd -c has been run.
The VDX file contains:-
---------------------------------------------------
LOGNAME=vdx; export LOGNAME
/usr/bin/strchg -h ptem,idterm >/dev/nell 2>$1
stty tabs ff0 cr0 nl0 echoe ofill
stty erase kill intr quit
stty tabs ff0 cr0 nl0 echoe ofill
tabs -1
TERM=prestel.40; export TERM
# Executable search path
PATH=.:/usr/bin:/usr/sbin:/usr/ucb:`cat /.uvhome`/bin:/etc;export PATH
cd /avro/DATA
#Start app
uv
------------------------------------------------
When I connect I see the server push the screen build to my terminal session and as soon as the prompt stops at the application login and is requesting communication from the terminal session is stops and loops its screen build again.
I know this type of connection is missing telnetd and so I need to push modules (strchg) to get a conversation, but at present I am stuck.
I will send the person who solves this a present from my trip to Dubai.
How is that for incentive.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 05:17 AM
05-29-2002 05:17 AM
Re: Telnet to port
First off I assume that "/dev/nell" is a typo in your question.
Second I would ask if your sure of your module order. I believe the last pushed should be the closest to the driver. Try reversing the order.
Finally, is this app a char driven (non-GUI) app? If GUI how do you set display?
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 05:21 AM
05-29-2002 05:21 AM
Re: Telnet to port
is it >/dev/nell 2>$1
or is it > /dev/null 2>$1
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 05:33 AM
05-29-2002 05:33 AM
Re: Telnet to port
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 05:33 AM
05-29-2002 05:33 AM
Re: Telnet to port
Yes nell is a typo
It is a char session.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 05:53 AM
05-29-2002 05:53 AM
Re: Telnet to port
As it loops again to reset I get:-
Stty : unknown error
Also as it looks quickly I cannot pick up a pid and attach to it to interogate it more.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 06:15 AM
05-29-2002 06:15 AM
Re: Telnet to port
Believe your stty error comes from the following line
stty erase kill intr quit
You need to define the ctrl chars for those functions on that line - EX
stty kill '^X' intr '^C'
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 06:27 AM
05-29-2002 06:27 AM
Re: Telnet to port
also, IIRC, the uv process just swaps the shell for the universe shell process, uvsh (or something similar). have you tried calleding tech support and asking them if you can link to the universe shell directly instead of calling it via uv?
finally, are you subscribed to Cliff Oliver's universe e-mail list?
List-Subscribe:
List-Post:
List-Help:
List-Unsubscribe:
HTH
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 06:37 AM
05-29-2002 06:37 AM
Re: Telnet to port
Thanks for that but universe is firing up and via the univere login program I path a user with a username of vdx to the application.
I see this occur and the application login screen builds ok.
The problem is the communication between the terminal session and the server which I am having problems with.
Thanks for universe List info.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 06:57 AM
05-29-2002 06:57 AM
Re: Telnet to port
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 11:10 AM
05-29-2002 11:10 AM
Re: Telnet to port
first the typos:
...,idterm >/dev/nell 2>$1
and
should really be:
...,ldterm >/dev/null 2>&1
Then I would set HOME in addition to LOGNAME, as many programs expect it to exist.
Then I do miss the stream module "compat".
The message from "stty" hints at your session not being a "process leader" bound to that terminal.
Just my usual $0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 07:39 AM
05-30-2002 07:39 AM
Re: Telnet to port
Tried all suggestions including mine -- still cannot hold a conversation.
A perl module called "try" has been suggested ?
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 08:08 AM
05-30-2002 08:08 AM
Re: Telnet to port
Just a hunch, have you tried using Expect? There are some good client-server example scripts (comes with the Expect source distribution) that you might be able to reuse for your cause.
Here's a list of the available example scripts:
http://expect.nist.gov/example/README
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 09:07 AM
05-30-2002 09:07 AM
Re: Telnet to port
1)
try "vi /tmp/testfile"
as the finally called application.
2)
add
echo script called `date` >> /tmp/logfile
as the first line and
>> /tmp/logfile
after each command in the script to catch messages. Redirect stderr in addition.
May be you get more information
Hope this helps
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 09:24 AM
05-30-2002 09:24 AM
Re: Telnet to port
Is a login out of the question? Even one that requires no password?
At least a normal telnetd will work, set the user's .profile to:
export LOGNAME=vdx
export TERM=prestel.40
export PATH=.:/usr/bin:/usr/sbin:/usr/ucb:`cat /.uvhome`/bin:/etccd /avro/DATA
exec uv
and Bob should be your proverbial uncle!
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 09:34 AM
05-30-2002 09:34 AM
Re: Telnet to port
This is going to be an via the internet presentation of our booking system to travel agents.
I intend not to give them a unix shell so that if the application fails than I have a safety net.
If I use telnetd then a shell is required, by pushing them via inetd.conf direct to the application then the application has got them.
I have run this application for four years with over 14000 connections per day to it with no dropouts.
It is at present connected via x25 and with that all the costs of x25 connectivity to the big wide world, with ip via the internet my costs are greatly reduced.
So my incentive to get this working will save lots of ??????????s
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 09:47 AM
05-30-2002 09:47 AM
Re: Telnet to port
I tried this
/usr/bin/strchg -h ptem,ldterm
stty echoe ofill
export LINES=24
export COLUMNS=80
export TERM=vt220
clear
vi /tmp/testfile
exit
works quite OK in a Reflection 2 window, with one exception:
At first, it only fills out half a screen. No idea why.
If you enter some text and scroll around in vi, everything seems to be ok. I can page back and forward, screencontrol seems to be fine with this stream.
So may be, the application requires a device, as someone already said ?!??
Is "uv" a binary executable or a script, that sets some stuff in addition ?
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 10:33 AM
05-30-2002 10:33 AM
Re: Telnet to port
What version of UV is this? As of 9.4 (IIRC), UV was both ODBC and JDBC compliant, so maybe you can collaborate with the application vendor for a quick-n-dirty scaled down version to do basic reporting and record querying.
Another thought may be if you can start a UV session for the app in the background and then use a middleware type of process to either ODBC or JDBC the input and output.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 10:46 AM
05-30-2002 10:46 AM
Re: Telnet to port
I am testing on Universe 9.6 and 9.4.1.1.I,
The application is our own which was written for a videotex / teletext screen.
I have an in house development team as our Flight only booking system is unique.
The front end has been in use for many years and the travel agents know and I hope love it so I am loath to change it, mind you I do not think the busdiness would let me.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 11:20 AM
05-30-2002 11:20 AM
Re: Telnet to port
<< I intend not to give them a unix shell so that if the application fails than I have a safety net. >>
The 'exec uv' command in my earlier reply replaces the initial shell with the uv process. This means that there's no shell to revert to if your app fails. As soon as the app exits the user will lose their connection. The app has 'got them' and there's nowhere else to go.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 01:31 PM
05-30-2002 01:31 PM
Re: Telnet to port
Do this by setting the 'shell' field in the /etc/passwd file to your app, like this:
appuser::1001:1001:app user:/tmp:/path/to/my/app
It'll launch the app instead of a shell that way.
Oh, you'll probably have to add your app to /etc/shells, too.
Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2002 04:05 AM
06-07-2002 04:05 AM
Re: Telnet to port
Thanks for your help.
Problem was that pushing the connection directy into Universe (database engine) that session went into uvsh - universe's own shell and allocated a Universe port number in the negative range i.e. -25673.
This negative number provided a problem as the software was written serverl years ago for dumb terminals and did not like this negative value.
So I put a routine in that looks for a connection of this type and and if the port number is negative it gets multiplied by -1.
---------------------------------------
0021: IF @LOGNAME EQ "vdxport" THEN
----:
0022: IF PORT.NO LT 1 THEN
----:
0023: PORT.NO = (PORT.NO * -1)
----:
0024: END
----:
0025: END
----------------------------------------
Once again thanks for all you help.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2002 04:08 AM
06-07-2002 04:08 AM
Re: Telnet to port
So, I assume you're going to send yourself a nice present from your trip to Dubai?
Well done and have a great holiday.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2002 04:14 AM
06-07-2002 04:14 AM
Re: Telnet to port
My present to myself is a week away in the sunshine with no unix servers to bother me.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2002 04:21 AM
06-07-2002 04:21 AM
Re: Telnet to port
Pete