Linked Questions

1 vote
1 answer
2k views

Shell script running but not opening terminal [duplicate]

I'm having a problem executing a shell script in ubuntu, the script is set as executable and I enabled the execute instead of view option in Nautilus and the script does what it's meant to do which is ...
juanjalvarez's user avatar
1 vote
2 answers
1k views

Custom keyboard shortcut to lauch a terminal and run a command without exit in the end [duplicate]

I want to create a shortcut to run a command with keyboard shortcut But when I press "alt+ctrl+a" terminal open and immediately close. Please help me to edit below command for prevent from close ...
Daniyal Javani's user avatar
-2 votes
1 answer
124 views

Terminal profile registering aliases [duplicate]

I'm trying to use the gnome-terminal profiles to cd to a given directory and register some aliases just after the terminal opens. I have created a script: ~/Document/project1/ops-setup.sh #!/bin/...
Pierre de LESPINAY's user avatar
1 vote
0 answers
68 views

Stop terminal from closing automatically when a shell script is run [duplicate]

Possible Duplicate: How to run script and don't close a terminal Whenever I try to run a shell script (with syntax errors) in the terminal on Ubuntu 12.04, the terminal opens and then quickly ...
Anderson Green's user avatar
-1 votes
1 answer
58 views

bashcript that opens another bashscript [duplicate]

I have a script that opens terminal and list directories. My problem is that the second terminal ls the files but disapears in a flash. how can i make it not disappear? i have tried sleep but not ...
baj's user avatar
  • 1
46 votes
8 answers
246k views

Run command on another(new) terminal window

How to run any command in another terminal window? Example: I opened one terminal window and if I run command like apropos editor, then it run and out-puts on that window. But I want to run same ...
Pandya's user avatar
  • 35.7k
58 votes
5 answers
178k views

Create a .desktop file that opens and execute a command in a terminal

I would like to know how to write the Exec command of a .desktop file to open a new terminal and execute a shell script in it. The shell script is working and accessible by all users. When launching ...
Paradiesstaub's user avatar
26 votes
2 answers
49k views

Open Terminal with multiple tabs and execute application

I am new to linux shell scripting. I want to write a shell script which will open terminal with multiple tabs; it should run rtsp client app in each tab. For this, I have gone through question here ...
user172001's user avatar
12 votes
4 answers
9k views

How to check if script was executed via command line or double-clicked?

How can I determine if a script was invoked from a command line or via double-click in file manager (Nautilis)? If the former, I still have a command prompt when the script finishes, but if it was ...
tcashin's user avatar
  • 177
5 votes
2 answers
15k views

Open terminal with multiple tabs and execute application which uniquely modifies PS1 variable for each tab

What I'm trying to do: Write a script to open 3 tabs. cd into a different folder in each tab (ie: run a unique command). get each tab to have a unique title by modifying its local PS1 variable ...
Gabriel Staples's user avatar
2 votes
2 answers
4k views

Run .sh with Desktop entry without closing terminal [duplicate]

Here is my desktop entry to run "PRGM.sh" [Desktop Entry] Encoding=UTF-8 Name=PRGM Comment=Launch PRGM Exec=gksu /home/markku/PRGM.sh Icon=utilities-terminal Type=Application Terminal=true The ...
Make465213's user avatar
2 votes
1 answer
3k views

Desktop file can't run script in terminal

I want to make a button on my lxpanel to launch a program that prints out Hello World! in a pop-up lxterminal, so I use the technique that I successfully implemented before in Debian 7, which is: ...
afc888ny's user avatar
  • 103
4 votes
1 answer
2k views

Launching php script through comman line - keeping terminal window open after execution

Oh, my girlfriend really likes it when I launch php scripts! There's something special about them, she says ... Thus, I coded this script to run throught the CLI (Command Line Interface) - so it's ...
somethis's user avatar
  • 934
1 vote
1 answer
2k views

How to execute a script with a desktop launcher

I have created a desktop launcher to execute a bash script but the problem is with directory. The file to be executed by launcher lies in /home/techy/folder/file.sh and the desktop launcher is located ...
techy's user avatar
  • 127
0 votes
1 answer
170 views

A bash script that opens several terminals from different direcotories and operates some funtions on those terminal

Maybe my question was partly answered here but I need full solution. What I want to do is this: gnome-terminal --tab -x "cd /ini/experiments/ gedit mytext.txt" --tab -e "cd /ini/myex/ipython" So I ...
Katsumoto San's user avatar

15 30 50 per page