Tagged Questions
1
vote
3answers
116 views
How to remove rick roll script at terminal startup?
I injected an sh script (https://github.com/jart/rickrollrc) using ./astley.sh inject evil for a joke but now when I need the terminal I have to wait and then lets me do commands. How do I UN-inject ...
2
votes
0answers
134 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
0answers
46 views
Continue script in terminal after pkill fullscreen program
I'm running a fullscreen program and i'm using pkill to close it by a keyboard shortcut. Killing the program works but my kill script also contains some other code. The rest of the script isn't being ...
0
votes
0answers
205 views
How to Get Output of sh Script run by gnome-scheduler [closed]
Currently i'm scheduling some tasks using a sh script and crontab (obviously)
It seems like i can only get the script to execute if i choose it to run as an X Application.
I've checked up a little on ...
1
vote
2answers
1k views
How to write Bash script What is the command to open a terminal with two different tabed terminals and execute some commands separately tabs?
How to write Bash script to open a terminal with two tabs, and execute commands in both tabs?
for instance:
tab 1 opens skype
tab 2 opens chromium-browser
In the end, I want one more thing: write a ...
5
votes
2answers
2k views
How can I run an application in gnome-terminal automatically when booting?
I need to run an application automatically when Ubuntu starts. I've got this app running without opening the terminal. However, this application displays some information in a terminal window and, ...
2
votes
2answers
295 views
How can I programmatically get the PID of the active GNOME Terminal instance?
How can I get the PID of the GNOME Terminal instance I'm using from within a Bash script?
I can run xprop _NET_WM_PID and then manually click the terminal window, but I'd like to completely automate ...
0
votes
1answer
301 views
Execute command before starting terminal copy file
What Happens
I write this line to copy an image to my local home dir
cp .cache/wallpaper/0_4_1280* .image.jpg
and all is well ....so I think it would be great if terminal would do this on start.
...
2
votes
1answer
64 views
how can I have two scripted operations each have their own gnome-terminal?
I have two scripted operations that take hours and both print to the console. I would like to avoid having their output interleaved because that looks a bit of a mess.
How would I write a script ...
2
votes
2answers
668 views
How to pass arguments in a script using gnome-terminal
As part of a script I have
gnome-terminal -e "process involving another user"
Once executed this line, I have to write in the terminal 3 times the password of this user. I wonder how can I automate ...
2
votes
1answer
371 views
What start up scripts are executed when a terminal is opened in Ubuntu?
When I open a terminal, it says cannot execute the binary file and the output is something like this,
bash: /home/sandeep/bin/uname: cannot execute binary file
bash: [: =: unary operator expected
...
4
votes
2answers
291 views
Combine Two Commands In a Script
I want to put two commands together
I need the script to login:
ssh root@192.168.0.188
Then I need to the script to run (while logged in to root@192.168.0.188 via ssh ):
find ...
10
votes
5answers
8k views
How to start a terminal with certain text already input on the command-line?
Rather than rephrasing my question, let me describe to you the desired user-case:
I create a short shell-script to run command "gnome-terminal --someoptionflagname 'my text to be posted'", and ...
