LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 06-25-2004, 09:11 AM   #1
mehesque
Member
 
Registered: Oct 2003
Location: TX
Distribution: RH 8.0
Posts: 97

Rep: Reputation: 15
shell scripting -- passing commands


Say that you want to make a script that runs in runlevel 5. You want it to create a terminal (konsole or gnome-terminal) how would you go about sending that terminal some commands to execute. If I can only send it an initial command for it to execute that will be ok.

Thanks a lot.
 
Old 06-25-2004, 09:34 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Re: shell scripting -- passing commands

Quote:
Originally posted by mehesque
Say that you want to make a script that runs in runlevel 5. You want it to create a terminal (konsole or gnome-terminal) how would you go about sending that terminal some commands to execute. If I can only send it an initial command for it to execute that will be ok.

Thanks a lot.

xterm and run it with a command.

Check the man pages. They may allow commands .
 
Old 06-25-2004, 09:49 AM   #3
mehesque
Member
 
Registered: Oct 2003
Location: TX
Distribution: RH 8.0
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks.

I got the "gnome-terminal "--command="" feature to work. However, I'm not sure if konsole allows commands to be passed.
 
Old 06-25-2004, 10:24 AM   #4
mehesque
Member
 
Registered: Oct 2003
Location: TX
Distribution: RH 8.0
Posts: 97

Original Poster
Rep: Reputation: 15
Ok, yes I can send a command to konsole and xterm using the "-e" option. However, the terminal just dies once it opens, is there a way to keep it from killing itself like in gnome-terminal. There, the ""'s delayed that.

I need to have to terminal remain open throughout the duration of the executing command.

Sorry, I'm new at shell scripting...
 
Old 06-25-2004, 10:28 AM   #5
mehesque
Member
 
Registered: Oct 2003
Location: TX
Distribution: RH 8.0
Posts: 97

Original Poster
Rep: Reputation: 15
Ehh, I just made additional scripts to call from the -e command... works and that's all I really care about.
 
  


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
shell scripting commands and yum= geminigal Linux - Newbie 2 05-13-2005 03:12 AM
Java: passing linux shell commands borgy_t Programming 3 04-19-2005 03:50 AM
Passing commands via ssh Comatose51 Linux - Security 1 04-13-2005 04:31 PM
I need a scripting lanuage with case and shell commands rob.rice Programming 1 04-18-2004 02:17 PM
Passing multiple commands to SU adamrad Linux - General 2 03-26-2004 10:53 AM


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

Main Menu
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