DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 21st July 2008
PatrickBaer PatrickBaer is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 81
Thanked 1 Time in 1 Post
Default Strange Eterm-problem

Good morning,

I recently added some ssh-logins as menu-items to the fluxbox menu:

[submenu] (SSH Sessions)
[exec] (Vader) {Eterm -n "SSH Vader" -e /usr/bin/ssh root@vader.tvwerk.de}
[exec] (Medusa 1) {Eterm -n "SSH Medusa 1" -e /usr/bin/ssh root@192.168.17.6}
[exec] (Medusa 2) {Eterm -n "SSH Medusa 2" -e /usr/bin/ssh root@192.168.17.7}
[exec] (Proxy1) {Eterm -n "SSH Proxy 1" -e /usr/bin/ssh root@10.10.10.2}
[exec] (Proxy2) {Eterm -n "SSH Proxy 2" -e /usr/bin/ssh root@10.10.10.3}
[exec] (R2D2) {Eterm -n "SSH R2D2" -e /usr/bin/ssh root@r2d2.tvwerk.de}
[exec] (Keto) {Eterm -n "SSH Keto" -e /usr/bin/ssh root@keto.tvwerk.de}
[end]


Now the strange thing: When I click the first entry "SSH Vader", it works just fine. I try the second one and the Eterm window comes up and immediately closes? I tried with some other lines and it seems some work and some not, just like the medusa lines, first doesn't, seconds works?

I replaced Eterm with xterm and all of the lines do work, strange eh?

What might that be.....
Reply With Quote
  #2   (View Single Post)  
Old 21st July 2008
ivanatora ivanatora is offline
Real Name: Ivan
Fdisk Soldier
 
Join Date: Jul 2008
Location: Bulgaria
Posts: 51
Thanked 2 Times in 1 Post
Default

Try running these commands from a regular term (like xterm, aterm... something you have 100% working) and see if there are any errors after the ssh process exit.
Reply With Quote
  #3   (View Single Post)  
Old 21st July 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

xterm is command-line compatible and the above options seem to work fine in my fluxbox menu, consider escaping the operand of -e as well, -e "/usr/bin/ssh root@vader.tvwerk.de" for instance.

If that doesn't work, try replacing the double quotes with single quotes...
Reply With Quote
  #4   (View Single Post)  
Old 21st July 2008
PatrickBaer PatrickBaer is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 81
Thanked 1 Time in 1 Post
Default

Well all of your suggestions might be a good attempt.

But it still doesn't explain, why

[exec] (Medusa 1) {Eterm -n "SSH Medusa 1" -e /usr/bin/ssh root@192.168.17.6}

works like a charme, while

[exec] (Medusa 2) {Eterm -n "SSH Medusa 2" -e /usr/bin/ssh root@192.168.17.7}

boldly goes, where no man has gone before?
Reply With Quote
  #5   (View Single Post)  
Old 21st July 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Can't explain it, works here perfectly... perhaps there is some unprintable in the file that's causing problems.
Reply With Quote
  #6   (View Single Post)  
Old 22nd July 2008
ivanatora ivanatora is offline
Real Name: Ivan
Fdisk Soldier
 
Join Date: Jul 2008
Location: Bulgaria
Posts: 51
Thanked 2 Times in 1 Post
Default

PatrickBaer, where are you from? Does your language uses some strange encoding? Are you switching keyboard layouts a bit?
I'm asking becouse it is the DUMBEST mistake ever happened to me - change a lating 'a' with a cyrillic 'а'. Do you see the difference? There is no difference in graphical presentation, but for the PC they are completely different characters. And thus 'startx' is a valid cmd, but 'stаrtx' (cyr 'a') is a 'command not found'.
Just rewrite these entries that are bothering you.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange lib problem mururoa FreeBSD General 3 1st August 2009 07:34 AM
PF: strange port 21 iwi OpenBSD Security 3 25th November 2008 02:21 PM
Strange network problem mururoa FreeBSD General 15 5th November 2008 08:25 AM
strange load problem on freebsd 7.0 amd64 skynet_tech FreeBSD General 3 11th September 2008 09:49 PM
NFS and FreeBSD 6.2r strange problem .. bsduser FreeBSD Installation and Upgrading 3 11th July 2008 11:48 AM


All times are GMT. The time now is 09:41 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick