SSH from MacOS X or PPC Debian to SUSE # Odd terminal chars # Eventual scripting
Well. I was recently given access to my work's machine via SSH. I'm pretty sure it's a SUSE machine, uname -a gives
I'm not doing anything all that exciting, mostly data entry stuff.
We connect to the machine from inside the office using PowerTerm which I would prefer not to use if I can help it. In PowerTerm we specify the terminal type to be SCO-ANSI but all other settings (port numbers, security type, etc) appear to be ones that I am used to seeing.
When I connect via SSH using iTerm, Apple's Terminal/X11, or Debian's terminal I get odd behavior like the screen not refreshing and keyboard mismatching-- eg if I type "05" the screen will echo " =14;12C=10;12C"
The actual program I am using on the remote machine is written in COBOL. Behavior outside of the program in question appears to be normal, eg I can use standard UNIX commands and keyboard translation is normal. I have access to the usual home documents like .profile and .bashrc
I would eventually like to script some of the more mundane tasks but first is there something I can do to fix the keyboard issues?
I haven't made much progress on this. The X11 that comes installed on Mac OS X 10.6.8 seems to work the best, but there is what looks like a line break mismatch. I have tried
But it didn't seem to change anything. Any thoughts?
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,288
Thanks Given: 430
Thanked 480 Times in 395 Posts
Hi.
For most Linux boxes, you should be able to find out what it is with:
which produces on an SuSE machine:
Are you entering "05" from the keyboard or the keypad ?
OK thanks.
gives
The keypress transliteration thing only happens when connecting with iTerm or Debian terminal and it is not a keypad press. The line break thing seems to be in all cases.
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,288
Thanks Given: 430
Thanked 480 Times in 395 Posts
Hi.
The most common problem I run into is "locale". I set mine to "C". For example:
produces:
I use Gnome terminal:
and, between that and the locale setting above I generally have no trouble with chararacter sets -- even to HP and AIX boxes ... cheers, drl
---------- Post updated at 04:53 PM ---------- Previous update was at 04:47 PM ----------
So the usual sequence of events is this:
Open X11, iTerm, PowerTerm, etc
Is that correct? I can't imagine I'd set my TERM after logging in right? Just making sure.
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)
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)
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)
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)
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)
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)
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)