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.
How about this?
A miniature shell-script on the commandline itself, telling it to run startvm.bsh first, then start a plain shell afterwards.
Thanks @corona688: I mean run gnome-terminal command which pop-up a gnome-terminal window. run & display the STDOUT of the startvm.bsh on the pop-up gnome-terminal for the purpose of displaying if command "vboxheadless ..." succesfully executed the VM then exit the script and then close the gnome-terminal window. Close all window(gnome-terminal) or shell etc. after displaying the STDOUT of the script but not affecting the command the script execute.
I already tried the command you give and succesfully powerof the vm and gnome-terminal won't close since another bash shell holding it. But as soon as the gnome-terminal close the same as the VM.(Its like sending a close signal to the command they executed before). I already tried putting "&" to background command but still no success.
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)
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT CENTOS
gnome-shell
GNOME-SHELL(1) gnome-shell GNOME-SHELL(1)NAME
gnome-shell - Graphical shell for the GNOME desktop
SYNOPSIS
gnome-shell [OPTION...]
DESCRIPTION
GNOME shell provides core user interface functions for the GNOME 3 desktop, like switching to windows and launching applications. GNOME
shell takes advantage of the capabilities of modern graphics hardware and introduces innovative user interface concepts to provide a
visually attractive and easy to use experience.
gnome-shell is a required component of the GNOME desktop, i.e. it is listed in the RequiredComponents field of
/usr/share/gnome-session/sessions/gnome.session. It is started in the window manager phase of the session.
OPTIONS -r, --replace
Replace the running window manager
--sm-disable
Disable connection to the session manager
--sm-client-id=ID
Specify session management ID
--sm-save-file=FILE
Initialize session from FILE
--screen=SCREEN
X screen to use
-d, --display=DISPLAY
X Display to use
--sync
Make X calls synchronous
--version
Print version and exit
--help
Display help and exit
--mode=MODE
Use a specific mode, e.g. "gdm" for login screen
--list-modes
List possible modes and exit
--clutter-display=DISPLAY
Clutter the option display (otherwise ignored)
FILES
/usr/share/gnome-session/sessions/gnome.session, /usr/share/applications/gnome-shell.desktop.
BUGS
The bug tracker can be reached by visiting the website https://bugzilla.gnome.org/buglist.cgi?product=gnome-shell. Before sending a bug
report, please verify that you have the latest version of gnome-shell. Many bugs (major and minor) are fixed at each release, and if yours
is out of date, the problem may already have been solved.
ADDITIONAL INFORMATION
For further information, visit the website http://live.gnome.org/GnomeShell.
gnome-shellGNOME-SHELL(1)