Linked Questions

1
vote
1answer
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 ...
1
vote
2answers
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 ...
-2
votes
1answer
91 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/...
1
vote
0answers
58 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 ...
-1
votes
1answer
49 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 ...
40
votes
8answers
189k 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 ...
46
votes
5answers
129k 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 ...
21
votes
2answers
37k 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 ...
10
votes
4answers
6k 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 ...
2
votes
2answers
2k 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 ...
2
votes
1answer
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: ...
2
votes
2answers
3k 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 ...
3
votes
1answer
1k 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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
158 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 ...

15 30 50 per page