LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-21-2002, 03:41 AM   #1
joey
LQ Newbie
 
Registered: Mar 2002
Posts: 2

Rep: Reputation: Disabled
passing terminal commands


im trying to start a terminal from the gnome pannel that automaticly logs me into a database. i have tried the command

gnome-terminal --command "DB connection string"

which starts the terminal and logs into the database but as soon as the command has completed the window exits.

How can i stop this ?
 
Old 03-21-2002, 03:51 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Of course! Just first run a terminal/console without command (One of the programs in Terminal section) and you can type your commands.
 
Old 03-21-2002, 04:03 AM   #3
joey
LQ Newbie
 
Registered: Mar 2002
Posts: 2

Original Poster
Rep: Reputation: Disabled
what im trying to do is have a terminal that i only use for database admin. it would just be handy if i could load the terminal and it already be connected to the database i want to work with.

e.g. have three terminal icons on my panel each of which will connect to a different database when they are loaded
 
Old 03-21-2002, 11:24 AM   #4
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 31
This is strange, because I would think the terminal wouldn't die until the program quit (i.e. you logged out of the DB). If I run something like "gnome-terminal --command rlogin anotherhost", my terminal stays alive until I exit from the other host.

Anyway, I'm pretty sure you can do this with xterm instead...sorry I can't help anymore with gnome-terminal:

xterm -hold -e "DB connection string"
 
  


Reply



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
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
Passing commands via ssh Comatose51 Linux - Security 1 04-13-2005 04:31 PM
shell scripting -- passing commands mehesque Linux - General 4 06-25-2004 10:28 AM
Passing multiple commands to SU adamrad Linux - General 2 03-26-2004 10:53 AM
Passing commands to the compiler with ./cofigure Travis86 Linux - Software 5 10-16-2003 09:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:15 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
Open Source Consulting | Domain Registration