Issue with gnome terminal


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Issue with gnome terminal
# 1  
Old 04-13-2012
Issue with gnome terminal

Hi,

I cant get this command to run in a new gnome terminal
Code:
cd "$PRG" && gnome-terminal -x sh -c './prg -r testcommand' &>/dev/null &

i can run just ./prg -r testcommand and it runs fine but in the command above it only runs ./prg

Any ideas community

Cheers in advance

Last edited by Franklin52; 04-15-2012 at 11:26 AM.. Reason: Please use code tags for data and code samples, thank you
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How are environment variables defined in a Gnome terminal session?

Hello... and thanks in advance for any help anyone can offer me with my question! I'm hoping someone will have a little patience with me and walk me through this! I'm trying to understand a user login process on Centos 7 and I've gotten a bit confused trying to figure out when/how a Gnome... (4 Replies)
Discussion started by: bodisha
4 Replies

2. 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

3. Shell Programming and Scripting

Problem run script inside a gnome-terminal

hi, I would like to ask about using gnome-terminal command, I had a script that will run my VBOX VM in headless and i want to display the output(STDOUT) on the gnome-terminal window. The purpose that i want to display the STDOUT of the script cause i will used it or create a desktop shortcut for... (11 Replies)
Discussion started by: jao_madn
11 Replies

4. Shell Programming and Scripting

Need assistance with a file issue and a terminal issue

Hello everyone, I'm in need of some assistance. I'm currently enrolled in an introductory UNIX shell programming course and, well halfway through the semester, we are receiving our first actual assignment. I've somewhat realized now that I've fallen behind, and I'm working to get caught up, but for... (1 Reply)
Discussion started by: MrMagoo22
1 Replies

5. UNIX for Dummies Questions & Answers

gnome-terminal questions

I have a couple questions regarding gnome-terminal. Basically I am trying to write an alias that will bring up several gnome-terminals that navigate to certain directories and run certain commands. I have it pretty well figured out, but the one I am having a problem with is simply running a... (2 Replies)
Discussion started by: Tennesseej
2 Replies

6. 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

7. 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

8. 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

9. UNIX for Dummies Questions & Answers

Dumb gnome terminal question.

I've searched and searched but either I'm not using the right key words or the information isn't in print anywhere. I'm running Cent 5.3 and I have a number of terminal profiles setup to ssh into some of my Unix servers at work, what I'm trying to do is setup shortcuts on my desktop to those... (3 Replies)
Discussion started by: nixnoob
3 Replies

10. 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
Login or Register to Ask a Question
gnome-screenshot(1)						   User Commands					       gnome-screenshot(1)

NAME
gnome-screenshot, gnome-panel-screenshot - GNOME screenshot utility SYNOPSIS
gnome-screenshot | gnome-panel-screenshot [--border-effect=effect] [--delay=int] [--include-border] [--interactive] [--window] [gnome-std- options] DESCRIPTION
gnome-screenshot allows users to capture the screen image of a window or the complete screen. gnome-panel-screenshot is a symlink to gnome-screenshot. If the --window option is used, you must move the mouse pointer to the window to be captured. The --delay option is always used with the --window option, to allow sufficient delay to set up the required screenshot. Once you have captured the window region, you are presented with a dialog showing a preview of the snapshot and the choice to save the image. OPTIONS
The following options are supported: --border-effect=effect Effect to add to the border. --delay=int Pause for int seconds before capturing the window or screen --include-border Include the window border with the screenshot. --interactive Interactively set options. --window Capture a screenshot of the window in which the mouse pointer is located. gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more information. EXAMPLES
Example 1: Capturing the full screen example% gnome-screenshot 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-screenshot Executable for GNOME screenshot utility /usr/bin/gnome-panel-screenshot Symbolic link to gnome-screenshot. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-utils | +-----------------------------+-----------------------------+ |Interface stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
Latest version of the GNOME Desktop User Guide for your platform. gnome-panel(1), attributes(5), gnome-std-options(5) NOTES
Written by Ghee Teo, Sun Microsystems Inc., 2003, 2006, 2007. SunOS 5.11 09 Nov 2007 gnome-screenshot(1)