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 ...
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 ...
user avatar
-2 votes
1 answer
104 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/...
user avatar
1 vote
0 answers
61 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 ...
user avatar
-1 votes
1 answer
51 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 ...
user avatar
  • 1
43 votes
8 answers
215k 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 ...
user avatar
  • 33k
49 votes
5 answers
149k 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 ...
user avatar
22 votes
2 answers
42k 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 ...
user avatar
11 votes
4 answers
7k 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 ...
user avatar
  • 167
4 votes
2 answers
9k 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 ...
user avatar
2 votes
2 answers
3k 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 ...
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: ...
user avatar
  • 103
3 votes
1 answer
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 ...
user avatar
  • 832
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 ...
user avatar
  • 117
0 votes
1 answer
164 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 ...
user avatar

15 30 50 per page