I am curious about some output that I get using an alias <command> on a remote host and I wondered if someone could point me in the right direction.
Symptoms:
Using "ssh -qi /path/to/key root@som.ipa.ddr.ess mail" (or variation of via alias)
only gives a partial textual display/output.
Output of "bacula mail" from my local machine.
...
U 1 root@localhost.local Sat Nov 26 02:10 64/3322 "Bacula: Backup OK of "
U 2 root@localhost.local Sat Nov 26 05:05 64/3332 "Bacula: Backup OK of "
...
vs. running it ON the host itself...
...
U 1 root@localhost.local Sat Nov 26 02:10 64/3322 "Bacula: Backup OK of c9bacula-fd Full"
U 2 root@localhost.local Sat Nov 26 05:05 64/3332 "Bacula: Backup OK of JJs_Web Differential"
...
I am hopeful that it is an environment setting I can dial in.
My hostOS is OpenSUSE 11.4 Gnome2.32.x
Target OSs/hosts vary but output is similar.
What shell are you using? I guess bash? Can you print paste the output of the "env" command?
Once you ssh to a remote machine, your environment changes accordingly and there should not be any difference between the outputs you get from ssh session and physical console session. Could be an issue due to character set encoding!! Just wondering!!
Can you compare the output from "env" with that when directly logged in? I'm wondering about $TERM and $COLUMNS.
Also try the same with the "alias" command.
Long shot is to use the "-n" switch to "ssh" as it cures all sorts of funnies.
Maybe your local terminal emulator is not set to "wrap" long lines and the output is actually there but you can't see it. Try redirecting the output to a file and check whether the characters are actually there.
Not clear what "mail" command you are actually issuing or where the "alias" comes from.
Ya know, after 18 years of this you'd think that I'd learn to live with some things?
It was an itch (almost-like the embedded terminal I 'had to have') that I thought I could scratch by flipping a bit or two.