Sponsored Content
Top Forums Shell Programming and Scripting Problem run script inside a gnome-terminal Post 302660401 by Corona688 on Friday 22nd of June 2012 12:16:32 PM
Old 06-22-2012
So you want the command to run, and then once the command finishes, drop to a shell?

That works when you type it because it doesn't hit EOF once startvm.bsh finishes -- there's already another shell running, waiting for the keyboard. But when you run it as a command, your program is the only thing running. It hits a very literal 'end of file', decides its time to quit, and when it does there's absolutely nothing left running at all -- causing the terminal to quit.

If you want it to run another shell after, tell it to run another shell after. Smilie

How about this?
Code:
gnome-terminal -x /bin/bash -c "/home/<location_script>/startvm.bsh ; exec /bin/bash"

A miniature shell-script on the commandline itself, telling it to run startvm.bsh first, then start a plain shell afterwards.
 

10 More Discussions You Might Find Interesting

1. Linux

run script through terminal

for all friends i am using linux enterprise 4. i installed oracle 10g in user name oracle.at the end of install i got a pop up window saying that u should run the following scripts(root.sh,orainstRoot.sh) in terminal from root account(cui) without log out oracle account . how i can run these... (5 Replies)
Discussion started by: sadiquep
5 Replies

2. Shell Programming and Scripting

Problem with gnome-terminal

Hello everyone. This is my first post.:o Using Ubuntu 8.04 and bash 3.2.39 i'm trying to adapt my routine to this platform. So, this means forget xterm and use gnome-terminal (as default ubuntu terminal). EveryDay i need to connect to several servers, and i've made a Tcl'script to make this... (1 Reply)
Discussion started by: trutoman
1 Replies

3. Shell Programming and Scripting

Problem - gnome terminal shell scripting

I've a python script named rwe.py. I'm running the program in three separate terminals. If one of the executing program stops . I want to leave the terminal as it is so that i can see the error. i wrote a the below script and used cron to run it every one hour to check if the three programs are... (0 Replies)
Discussion started by: msteve2002
0 Replies

4. Shell Programming and Scripting

Set terminal width inside a shell script

Hi all, I have a shell script which uses "mailx -H" to get the subject of a email in a Linux system. However, the subject is truncated, and I think it has something to do with the terminal width because it only returns the first 80 characters of each line. I have tried "stty columns"... (7 Replies)
Discussion started by: mezzo
7 Replies

5. Shell Programming and Scripting

Is command line invocation of gnome-terminal to run more than one command possible?

Hello, I am trying to learn how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here: #! /bin/bash # #TODO write this for gnome and xterm USAGE=" ______________________________________________ ${0##*/} run... (0 Replies)
Discussion started by: Narnie
0 Replies

6. Shell Programming and Scripting

Run bash script without terminal

How can I make a bash script that keeps on running after I have closed the terminal? Or a script that runs without having the terminal window open? (1 Reply)
Discussion started by: locoroco
1 Replies

7. UNIX for Dummies Questions & Answers

Script to run a command in a new terminal

Hey, I am trying to write a script that will open all of my session windows, and then secure shell into the appropriate server in the new windows. Seems simple, but I cant get it to work! Please help! :confused: (1 Reply)
Discussion started by: sojo1024
1 Replies

8. Linux

How to open a gnome-terminal in specific workspace and run script within it automatically upon login

OK this is a bit messy. I run Fedora with gnome on a compiz desktop, I have a script (userstart) that opens my 'standard' environment for all my machines when I login. userstart flips to a specific workspace and then opens the required applications in that workspace then flips to the next... (2 Replies)
Discussion started by: Bashingaway
2 Replies

9. Shell Programming and Scripting

Open gnome-terminal with multi tabs and automatically run a script in each tab

Hi All , i am trying to create an alias to open a new gnome-terminal and run some commands in each tab & to have a specific name for each tab i am using csh , tried this command gnome-terminal --tab -t "s1" --tab -t "s2" --tab -t "s3" --tab -t "s4" it opened 4 tabs but the title didn't... (0 Replies)
Discussion started by: Assem
0 Replies

10. Shell Programming and Scripting

Run script in new terminal

Hi Guys, I have a script that runs certain simulations in batch mode. I need to schedule some simulations to run over night. For each simulation to complete it should be run in separate terminal. My script is as follows sh run_test.sh <arg1> <arg2> <arg3> ... I need to launch this... (5 Replies)
Discussion started by: aelhosiny
5 Replies
gnome-at-properties(1)						   User Commands					    gnome-at-properties(1)

NAME
gnome-at-properties - enable support for Assistive Technologies in GNOME SYNOPSIS
gnome-at-properties [gnome-std-options] DESCRIPTION
Use gnome-at-properties, the Assistive Technology preference tool, to enable assistive technologies in your desktop. You can use gnome-at- properties to specify that the following assistive technology applications start automatically when you log in: o Screenreader o Magnifier o On-screen Keyboard OPTIONS
The following options are supported: gnome-std-optionStandard options available for use with most GNOME applications. See gnome-std-options(5) for more information. EXAMPLES
Example 1: Launching Assistive Technology Preference Tool example% gnome-at-properties EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/gnome-at-properExecutable for Assistive Technology preference tool ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+------------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+------------------------------+ |Availability |SUNWgnome-desktop-preferences | +-----------------------------+------------------------------+ |Interface stability |External | +-----------------------------+------------------------------+ SEE ALSO
Latest version of the GNOME Desktop User Guide for your platform. cddb-slave2-properties(1), gnome-accessibility-keyboard-properties(1), gnome-background-properties(1), gnome-default-applications-proper- ties(1), gnome-file-types-properties(1), gnome-font-properties(1), gnome-keybinding-properties(1), gnome-keyboard-properties(1), gnome- mouse-properties(1), gnome-network-preferences(1), gnome-panel-preferences(1), gnome-session-properties(1), gnome-sound-properties(1), gnome-theme-properties(1), gnome-ui-properties(1), metacity-properties(1), gnome-std-options(5) NOTES
Written by Glynn Foster, Sun Microsystems Inc., 2004. SunOS 5.10 6 Sep 2004 gnome-at-properties(1)
All times are GMT -4. The time now is 04:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy