SSH from MacOS X or PPC Debian to SUSE # Odd terminal chars # Eventual scripting


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers SSH from MacOS X or PPC Debian to SUSE # Odd terminal chars # Eventual scripting
# 8  
Old 11-15-2011
I guess the COBOL program that runs on the machine I'm connecting to expects SCO-ANSI
# 9  
Old 11-15-2011
It may be the program that's malfunctioning, not SSH...
# 10  
Old 11-15-2011
Hi.

I have also found that both sides of the connection need to be the same for the best results. So, for example, in Gnome Terminal, I make sure I am using TERM=vt100. When I connect to other systems, either I enter TERM=vt100 or it is in the startup file, e.g. .bash_profile

It might be useful to see what the other side is thinking you are using by entering
Code:
echo $TERM

immediately after you login to the remote system. If it is different from the local system, then I suggest that you change one or the other so that they are the same, and see what happens ... cheers, drl
# 11  
Old 11-16-2011
Remote system expects SCO-ANSI
Code:
TERM=scoansi

---------- Post updated at 02:49 PM ---------- Previous update was at 02:48 PM ----------

Oh I don't think SSH or the program are malfunctioning, I just need to find the right combination of settings. Hopefully.
# 12  
Old 11-17-2011
Hi.

So you did the echo $TERM from each of the emulators as well as on the remote session with that emulator? ... cheers, drl

---------- Post updated at 22:18 ---------- Previous update was at 21:58 ----------

Hi.

I set TERM=scoansi, and connected to my SuSE box with ssh. This is the exchange:
Code:
vm-suse:~> cat /etc/issue
Welcome to openSUSE 11.4 "Celadon" - Kernel \r (\l).


vm-suse:~> echo 05
05
vm-suse:~> echo $TERM
scoansi

I cannot duplicate your problem.

The original response looks similar to terminal settings like colors and such. Is the response you got from entering "05" from the command line or from the COBOL program?

Has the program ever worked successfully? If so, from which emulator? ... cheers, drl
# 13  
Old 11-17-2011
Yes, the SSH connection seems fine outside of the program I'm using. I can connect ok and get a normal-looking prompt. It's when I start up the COBOL program that things get funny.

PowerTerm is what we use in the office, it's the only emulator that appears to work without hiccups.

In iTerm I get funny chars but if I ignore them the program seems to act normally.

The X11 that came with my Mac (or maybe on the Dev Tools, I forget) almost works normally aside from the first line of every menu not being legible.

I forget what happens in Gnome Terminal (on PPC Debian) but it was not quite right.

Incidentally, the following text appears when starting up the COBOL program but doesn't show up on the machines in the office. I think because PowerTerm forces an 80 col x 25 row window? The little bit at the end is because I was using iTerm at the time.
Code:
RM/COBOL Runtime - Version 11.01 for Large File Linux (Intel).
RM/COBOL Runtime System issued to MYEMPLOYER.
Configured for XX users.
Copyright (c) 1985-2007 by Liant Software Corp.  All rights reserved.
Registration Number: 0X-0000-00000-0000
=14;12C

---------- Post updated at 04:22 AM ---------- Previous update was at 04:18 AM ----------

Oh and to answer your other question
Quote:
Is the response you got from entering "05" from the command line or from the COBOL program?
The response/odd chars only happen in the COBOL program.
# 14  
Old 11-18-2011
Hi.

In looking at the PowerTerm description at 3270,TN3270 5250, TN5250 Terminal Emulation with VBA for Windows. :
Quote:
The PowerTerm Pro Series is Ericom Software's premier 3270 and 5250 terminal emulation solution for Windows that simplifies and extends legacy access functionality.
I would guess that the COBOL program is trying to drive the terminal in those modes ( 3270, 5250), and the odd sequences mean something to those kinds of terminals, but not to a vanilla ansi emulation.

If so, there are two packages on Debian that may be of interest:
Code:
c3270 - Curses program for telnet sessions to IBM mainframes
x3270 - X11 program for telnet sessions to IBM mainframes

There are notes at the bottom of the page at tn5250 that suggest related programs.

I think this is related to the COBOL program as Corona688 suggested, except that it may not be malfunctioning, just that it does not have the context that it was written for.

At any rate, this does not seem to me like a directly-related Linux or SSH issue ... cheers, drl

( edit 1: typo, missing word "not" near bottom )

Last edited by drl; 11-20-2011 at 09:42 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Shell script to split data with a delimiter having chars and special chars

Hi Team, I have a file a1.txt with data as follows. dfjakjf...asdfkasj</EnableQuotedIDs><SQL><SelectStatement modified='1' type='string'><! The delimiter string: <SelectStatement modified='1' type='string'><! dlm="<SelectStatement modified='1' type='string'><! The above command is... (7 Replies)
Discussion started by: kmanivan82
7 Replies

2. Shell Programming and Scripting

Terminal running bash/rsync script does not close with exit (MacOS High SIerra)

Hello, I am running a bash script to do an rsync back on a computer running MacOS High Sierra. This is the script I am using, #!/bin/bash # main backup location, trailing slash included backup_loc="/Volumes/Archive_Volume/00_macos_backup/" # generic backup function function backup {... (12 Replies)
Discussion started by: LMHmedchem
12 Replies

3. Shell Programming and Scripting

shell scripting to determine special chars in file

Hi, I need all your help to achieve the below functionality. I have a big 2 GB file and inside the file we need to identify, whether having a comma(,) or pipe(|) or tab or fixed position or semicolon(;) delimiter. If any of those delimiter found need to replace the file with pipe(|)... (1 Reply)
Discussion started by: lkeswar
1 Replies

4. Debian

How to exit debian server terminal?

I have an situation that are quite strange to me. I am not able to exit the server terminal and enter back into my home computer terminal by the command exit like I used to be able to exit the server terminal with before. I end up into my root shell again without even typing the root password like... (6 Replies)
Discussion started by: Jonathan Sander
6 Replies

5. SuSE

SFTP with Suse 9.3 need help with Update ssh

Hi eryone, I'm new here. Since I'm a graphic designer and not an admin, I need to learn a lot from the first step, so please be patient with me. ;-) Most of my skills are self taught with howtos, so there might be some lack of wisdom in basics. I've setup a Suse-System (9.3) with a few upload... (3 Replies)
Discussion started by: rezent
3 Replies

6. Programming

is it SUSE or RHEL or Debian. How to detect programmatically?

Hi Gurus, I want to programmatically detect what Linux flavour I have in my m/c, detailed OS-name and its version, e.g. is it RHEL, SUSE, Debian etc. ---------------------------------------------------------------- Flavour OS-Nname version... (4 Replies)
Discussion started by: krishnamurthig
4 Replies

7. Shell Programming and Scripting

Help with scripting APT / dpkg in Debian 4

Hello, I am attempting to write a (bash) shell script that will do some basic reporting based on the APT utilities and dpkg. I need the following in the report: Packages installed (COLUMNS=200 dpkg -l | grep '/^ii/' > packages_installed) Packages not installed I suppose that I can do ... (0 Replies)
Discussion started by: orspain
0 Replies
Login or Register to Ask a Question