I'm trying to get a script to open a gnome-terminal and input commands into it, just as you would typing them in.
I've written a simple bash script for deleting some temporary files that match a certain pattern:
#!/bin/bash
cd ~/some_project/some_dir
rm */*.xml
I've saved it as 'script', chmodded it to +x via terminal. Now when I double click this file, I get the option to Run it in terminal or display its output.
I'm trying to find a decent ide to use with bash scripting, it seems a lot of the top ides kind of overlook bash, I'm using geany but I would like one that has support for collapsing and expanding various sections of script like it does with python, for example collapse an IF statement so its out of the way to make long code more manageable, I would also like to find one if possible that can run y
How to write Bash script to open two different taped terminal ,and write in both of them commands separately to be executed unrelationally
for instance :
Terminal number one open skype
terminal number two open chromium-browser
in the end , i want one more thing , can i write in the bash script my skype username and password to put them in skype when open it in terminal one automatically the
I'm stuck. Ubuntu 11.10 was working fine. I tried to create a desktop icon that I could click and run a Terminal command. (not launch a program, just run a command to set something). I don't know what I did, but now I can't get Terminal to run at all. I can't click on Terminal in the Launchbar or use alt-F2. If I try, I see a VERY quick box open and close.
I like the terminal, it's handy to have open but this happens eveytime:
open terminal
type something in it
switch to another program
dammit terminal is closed
:-/ This happens even if I just type something in the command line and leave it there, or if I open a program through the command line or if I'm just looking through my folders...
edit
Sorry this is the true chain of events:
List it
So i tried making a desktop shortcut which executes a very simple shell script.
But when i double click/right click->execute it, it does nothing. (or atleast i think it does nothing)
heres how my shortcut and shell script looks:
Note the shortcut has "Terminal" set to 1, and i hope that means that it opens the shell script in a new terminal window..
I need to run " v4l2-ctl -i 2 " in Terminal, by clicking on a desktop icon.
Right now, I have to manually open Terminal, type in this command, and it sets the video
input of my tv card in Ubuntu. Then I can open the tv player to watch tv. For some reason, the tv card input doesn't stay set.
Hey there,
I'm getting into shell/bash scripting, and I use my terminal for almost everything.