Sponsored Content
Operating Systems SCO Telnet session disconnects abruptly Post 302952998 by sean6605 on Monday 24th of August 2015 08:48:36 PM
Old 08-24-2015
jgt,
Thank you again for the help. I now understand how the program is being started thanks to you training script and the exec command.
I can see that the application is initiated through the user's .profile using the exec command
if I try a
Code:
 #grep username /etc/password

I get
Code:
 grep: cannot open file /etc/password for reading: No such file or directory (error 2)

But I can see that in /etc/passwd
Code:
 username:x:102:50::/u/username:/bin/sh

Every user has their own home directory, and the shell is common
Here is a .profile
Code:
 #
# this is .profile that we use to assign WPTERM variable
#
ABE=ASCII
SHELL=/bin/sh
PATH=/bin:/usr/bin:/etc:/usr/lib:/u/appl/fp:/u/softa/bin:/u/myprog:/usr/sys/conf:/u/wp51/wpbin:/u/wp51/shbin
HOME=/
HZ=50
pp=/u/appl/fp
on=/u/appl/filepro
pf=/u/appl/filepro
up=/updates/u/appl/filepro
sd=/u/softa/bin
mp=/u/myprog
if [ "$TERM" = dialup ]
then
:
echo To use multiscreens - type in '"mscreen -n 4"', use  Alt 1-Alt 4 keys
echo
fi
if   test "$TERM" = dialup -o "$TERM" = unknown
   then
       eval `tset -m :\?${TERM:-ansi} -e -s -r -Q`
fi
if   test "$TERM" = wyse50 -o "$TERM" = wy50
   then
       WPTERM=wyse50
elif   test "$TERM" = wyse60 -o "$TERM" = wy60
   then
       WPTERM=dejaA25
elif test "$TERM" = ansi
   then
 case `tty` in
  /dev/tty[01][0-9]) WPTERM=scoconscol ;;
  /dev/ttyv*) WPTERM=scoconscol ;;
  *) WPTERM=dejaA25 ;;
 esac
elif test "$TERM" = vt100
   then
       WPTERM=vt102
fi
PFTOKSIZE=130000
ver_number=3
export ABE SHELL PATH HOME TERM HZ pp pf sd on WPTERM PFTOKSIZE ver_number mp
getcolor  # optional color for color screens
umask 0000
exec mz gmain

I can see the "exec mz gmain" and when I run that command after I SSH into the box to the command prompt I get right to the application main menu.
I am not clear on the if then else statements but do know that I set the terminal emulator program to use term type as "ansi"
Does this help at all?
Thanks
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

telnet session timeout

hi, we can set something such that if the user has been idle for a while, it will auto disconnect. where to do so? thanks (6 Replies)
Discussion started by: yls177
6 Replies

2. Shell Programming and Scripting

Telnet session does not expire

Dear friends.. Our project has a module that runs on handheld devices. Through the handheld we telnet to solaris where the application actually runs. I noticed that after starting a session through the handheld, if i go out of range or if i remove and replace the battery in the handheld, the... (1 Reply)
Discussion started by: deepsteptom
1 Replies

3. Shell Programming and Scripting

Telnet Session

{ sleep 2 echo "$user" sleep 2 echo "$password" sleep 2 echo " ls" sleep 10 echo "exit" }| telnet $server I have a machine x and i have executed the above script on machine 'x'. i entered the... (6 Replies)
Discussion started by: pathanjalireddy
6 Replies

4. UNIX for Dummies Questions & Answers

Unix Telnet session

Hi Is there any way whilst in a telnet session you can view your client machine name that you are using to connect to the Unix box ? :eek: (2 Replies)
Discussion started by: mlucas
2 Replies

5. AIX

aix telnet disconnects

We're having problems getting disconnected from AIX with our telnet sessions. I can't ping the server when this happens, either. Other serves can be pinged at the same time. This happens both at unix and within the database. Database locks remain when editing files. unix logins remain after... (0 Replies)
Discussion started by: e1lyons
0 Replies

6. UNIX for Dummies Questions & Answers

Telnet Session to AIX

Hello, I have AIX 5.3 at home connected to netgear router. Port Forwarding has been enabled on the router. Problem is that if I want to telnet, I have to try 2 or 3 times before I can get a logon prompt. It times out for first or second time (Connection to session <IP_Address> failed: Connection... (1 Reply)
Discussion started by: bluebee
1 Replies

7. AIX

Telnet disconnects on handheld device AIX

I have intermec handheld device which is connecting to AIX Server on port 12431 or whatever. ( oracle application ) The handheld device connects for few seconds and then disconnects from the AIX server. Once it disconnects the handheld device automatically switches off. Are there any... (2 Replies)
Discussion started by: filosophizer
2 Replies

8. HP-UX

ssh session getting hung (smilar to hpux telnet session is getting hung after about 15 minutes)

Our network administrators implemented some sort of check to kill idle sessions and now burden is on us to run some sort of keep alive. Client based keep alive doesn't do a very good job. I have same issue with ssh. Does solution 2 provided above apply for ssh sessions also? (1 Reply)
Discussion started by: yoda9691
1 Replies

9. Solaris

How do I keep an X session alive when my VPN/ssh disconnects so I can reconnect later?

Hi, Sorry if this question has been asked before, however, I have tried looking in the forum (and google in general) and I haven't found an answer, so I thought I'd ask here. I am trying to use a GUI application in Solaris 10. Normally I connect with a VPN then SSH and use Xming to... (2 Replies)
Discussion started by: John_sp
2 Replies
Net::CLI::Interact::Transport::Telnet(3pm)		User Contributed Perl Documentation		Net::CLI::Interact::Transport::Telnet(3pm)

NAME
Net::CLI::Interact::Transport::Telnet - TELNET based CLI connection VERSION
version 1.121640 DECRIPTION
This module provides a wrapped instance of a TELNET client for use by Net::CLI::Interact. INTERFACE
app On Windows platforms you must download the "plink.exe" program, and pass its location to the library in this parameter. On other platforms, this defaults to "telnet". runtime_options Based on the "connect_options" hash provided to Net::CLI::Interact on construction, selects and formats parameters to provide to "app" on the command line. Supported attributes: host (required) Host name or IP address of the host to which the TELNET application is to connect. reap Only used on Unix platforms, this installs a signal handler which attempts to reap the "ssh" child process. Pass a true value to enable this feature only if you notice zombie processes are being left behind after use. COMPOSITION
See the following for further interface details: o Net::CLI::Interact::Transport AUTHOR
Oliver Gorwits <oliver@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Oliver Gorwits. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-12 Net::CLI::Interact::Transport::Telnet(3pm)
All times are GMT -4. The time now is 05:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy