LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-08-2003, 03:02 PM   #1
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Rep: Reputation: 30
start terminal & run command automatically


I hope this is a real easy question (and I couldn't even figure out what to search for). If I am running a X session, and want to ssh into my router to check something out, how do I start a terminal that automatically runs "ssh 192.168.1.7 -l root" , what do I put as the command in my menu? I know that the following do NOT work:

"ssh 192.168.1.7 -l root" > aterm
aterm < "ssh 192.168.1.7 -l root"

If it makes any difference, I am running XFree86 4.3 and windowmaker, using a bash (2.05b) shell.

TIA
 
Old 09-08-2003, 03:20 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
" what do I put as the command in my menu?":

try the -e option:
xterm -e ssh 192.168.1.7 -l root

or perhaps:
aterm -e ssh 192.168.1.7 -l root

you may also need the hold option:
xterm -hold -e ssh 192.168.1.7 -l root


Last edited by jailbait; 09-08-2003 at 03:24 PM.
 
Old 09-08-2003, 03:57 PM   #3
peeples
Member
 
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180

Original Poster
Rep: Reputation: 30
SOLVED

Steve,

Thanks a bunch !! The -e option did it just fine. (And boy do I feel stupid, it was right there in the man page - doh! ).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can a command/program be run automatically on boot? chuanweizuo Linux - Hardware 1 11-28-2005 11:36 AM
How to run a command automatically on start up TKD Suse/Novell 6 11-03-2005 05:41 AM
How to automatically run a command when you open a Konsole shazam75 Linux - Software 3 11-30-2004 05:02 AM
How can I run a command automatically at startup? luwigie Linux - General 8 08-26-2004 10:05 PM
How do I get Fedora to automatically run a command during startup? jlsain Linux - Software 2 03-23-2004 05:03 AM


All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration