Ubuntu :: Injecting Commands Into Different Terminal Windows
Jul 30, 2011
I have a terminal window running a game server in Ubuntu 11.04. no problems at all.I also have a backup script, which simply uses cp to save copies of the level files. this is run as a scheduled task every 20 minutes.What i'm trying to do, is as part of the backup script issue a command in the game server terminal window (forcing a save of the level) before the cp command takes place.
Two days of googling and i have failed to find a solution, anyone have any ideas?one thing i was also trying to figure out is how to identify the game server terminal window, maybe by changing the 'Terminal' text at the top. is this possible?
View 1 Replies
ADVERTISEMENT
Feb 10, 2011
i started using computer when it was all dos driven so thought i was going to be fine using the terminal in ubuntu the problem i am facing is i can not quite get my head round why is it if i load the terminal. and the first this i type is dir or ls it gives me a list off directories. So why is it if i type cd /pictures i get no such file or directory ? Confused
This also bugging the jebus out off me is i am trying to get into my usb pen drive from the terminal to run a program i have on there.
so i type cd /media
then typed ls
is displayed New Volume <-- This being the name off my pen drive
i have tried every this to get into there but the commands i would use in dos are not playing ball.
Can some one please explain how to get into my usb pen then tell me were i can go read on this as i really can not get my head around this at moment.
View 5 Replies
View Related
Apr 26, 2010
I have UDP packets generated on Machine A that are addressed to Machine B (unicast) that I capture with PCAP. After transporting this raw data to Machine B (via RF modem) I'm trying to reinject the original UDP on Machine B through a tap0 interface. The capture and transport are all working fine. BUT once on the destination machine, the reinjected ethernet packets are NOT being received by a local UDP server. this is my socket creation :
Code:
outputSocket = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
struct ifreq s_ifr;
strcpy(s_ifr.ifr_name, "tap0");
"data" is an unsigned char array that contains the original packet data received from pcap, which includes the ethernet header, ip header, udp header, and payload data. after the call to write() completes, Wireshark on Machine B sees a correctly formatted (checksums and all) UDP packet when listening to tap0 - ie. no lines highlighted in red. *BUT* - a UDP server i have running on Machine B never receives the reinjected UDP datagram. (I have verified that this server works, by using a simple local udp generator app.) is there something wrong with how I'm creating the socket and/or writing the data back out to the tap0?
View 1 Replies
View Related
Jan 24, 2010
if you do the command conky in terminal, it starts conky ofcourse, but it also shows output to that terminal so you can't do any other commands to that terminal, Is their an option like you can do with the '&' sign in other cases? If you do the '&' sign with conky it still gives output, also the conky -d command gives output...
View 9 Replies
View Related
Jan 21, 2010
I am in the process of coverting some video files to motion jpeg (Wii) files with ffmpeg (great program by the way). I have been successful and so the majority of my work is over. My question is simple (I think) but complex to me so... here it goes. Is there a way on one command line to "batch" convert 8 or 9 files together instead of one by one. I just don't know what to put on the command line. I took one UNIX class a long time ago and the terms pipe and such come to mind... but I forget. Any takers? That was I can write what I want the computer to do in the morning and just come back after work and voila...
View 6 Replies
View Related
Feb 27, 2010
Is there any easy way to Make a GUI for terminal commands?
View 2 Replies
View Related
Mar 20, 2010
I was following a guide to stop Ubuntu from always asking the root password. And apparently i messed something up in vsudo edit or something like that i was in... So now when i put in a sudo command i get this...
Quote:
>>> /etc/sudoers: syntax error near line 18 <<<
sudo: parse error in /etc/sudoers near line 18
sudo: no valid sudoers sources found, quitting
so i cant even get back to undo what i edited.
View 8 Replies
View Related
Apr 11, 2010
I am trying to boot debian on my nexus one the guide i am using is telling me to run these commands
I am getting to the point where i type the command # cd /sdcard/debian but it tells me cd: can't cd to /sdcard/debian.
View 9 Replies
View Related
Apr 30, 2010
I've created a bash shell script, to open a few graphical programs. Trouble is, the next one doesn't start until I close the first one. How can I just skip to the next program?
View 2 Replies
View Related
May 7, 2010
Is there any way to run commands of other programs from the terminal?opened a doc file from the terminal using>openoffice.org filename.docis there any way to executeSELECT ALL[ctrl + a] orCOPY [ctrl + c]from the terminal?
View 2 Replies
View Related
Nov 17, 2010
I couldn't really find a general Ubuntu discussion area. So I typed ipconfig and of course it said no such command blah blah blah. What I found interesting was that it provided a list of other commands I may have meant to use, ie. ifconfig. So what's the algorithm used to determine the commands? Is it SOUNDEX or something else?
View 1 Replies
View Related
Nov 30, 2010
Unzipped the folder in home/folder wordpress-3.0.2.tar.gz and now have a file called 'wordpress' Can someone walk me through the terminal commands to install from here.
View 1 Replies
View Related
May 6, 2011
I upgraded to 11.04 today and wanted to reconfigure so that I could have the desktop cube again. Once I started trying to switch my settings for the cube configuration compiz asked whether I wanted to turn off various features and apparently among them was the control bar on the side and top of the screen. Now I log in to Ubuntu and I get my workspace and that's it. No control bars, just the workspace. I need to know a few things:
1) Has anyone else had this problem?
2) How do I get into the terminal from keyboard commands?
3) What terminal commands do I need to bring back at least the main toolbar so I can access programs.
View 1 Replies
View Related
Jul 16, 2011
Im new to ubuntu and I was wondering if someone could list some basic terminal commands and explain what they do, and when and why you would use them.
View 4 Replies
View Related
Aug 3, 2011
I have a question regarding terminal. I try to launch it from the "Startup Applications" by entering a script.Code: sh -c '/usr/bin/gnome-terminal'but it does not start.Also, when it does start I would like it to auto run certain commands: navigate to my project folder run "play test" open a new tab run "top".how can I achieve this?
View 9 Replies
View Related
Jan 6, 2010
I was wondering if there was a way to show all current actions I am doing in a terminal window? For example if I left a terminal window open on one of my desktops, could I make it display everything I am doing so that when I receive some general error in a program, I could jump over and get some more details. I could also use it to see what commands are actually run when I do certain things.
View 1 Replies
View Related
Jul 1, 2010
I added this:
Code:
clear
fortune | cowsay | echo
to the bottom of my .profile expecting a cow to tell me a fun quote whenever i pull up a terminal. It hasn't done anything, however. How do I achieve my desired effect?
View 4 Replies
View Related
Apr 7, 2011
This is the commands wallpaper for desktop. I hope you all will like it... [URL]
View 8 Replies
View Related
Apr 20, 2011
I mean, obviously I can just type them out and italicize them or something equally boring, but what I'd like to do is make the code look like it does on these forums.Code:sudo apt-get install html-knowledgeI've been Googling like a mad man (not a euphemism) for the better part of an hour and can't turn up any pertinent results. I thought maybe somebody here could point me in the right direction. I'm tired of my blog posts looking ugly and disorganized when I start typing commands.
View 2 Replies
View Related
Jun 23, 2011
We have created a stripped own version of Ubuntu 10.04 LTS, and removed the screen saver and power management options from the desktop as we have turned off the menu. The reason for this is security as we do not want users having any other options then what shows on the desktop. What is the sudo command to get back to this or do I need to under the administrator profile Create a Launcher icon?
View 1 Replies
View Related
Jun 25, 2011
I wonder if there is a directory for a terminal commands that may I can backup the commands I have used in the terminal before.
View 7 Replies
View Related
Jul 10, 2011
While trying to make a Winmodem work, I've installed drivers, done magic incantations in Terminal, etc., without keeping complete records of what I did. Is there a "clean" routine or something that will remove unused drivers, or do a system rollback, or some other way to clean up the mess?
View 2 Replies
View Related
Sep 1, 2011
With xterm, I can do the following, and the scripts are executed sequentially in a single xterm: xterm -e 'script1.sh;script2.sh' But with gnome-terminal, when I do: gnome-terminal -e script1.sh;script2.sh It runs them in parallel in 2 different terminals. I've tried a few combinations of ", and ', around the scrips, but no difference.
View 2 Replies
View Related
Jan 7, 2010
I was trying to navigate by terminal and tried to change directories by typing- cd ./documents and terminal states no such directory. I can only navigate folders that I created with mkdir. Do I need to set permissions somewhere? Yes documents does exist in my home folder and I tried to open others with no luck.
View 1 Replies
View Related
May 8, 2011
I need something about file processing tutorial in terminal, about its commands.
View 2 Replies
View Related
Mar 30, 2011
I know CD, Apt-Get, and Dir, but besides that I know mostly Command Prompt commands and that's not many, and they seem to differ from Terminal. What are some useful Terminal commands that I should know how to use in times or need?
View 3 Replies
View Related
Jan 15, 2010
I had automated some tedious commands in the terminal by writing them in a text file and placing an icon on the panel. By clicking the icon the commands ran in the terminal automatically. I cant for the life of me remember the icon command I used to get this to work.
View 3 Replies
View Related
Jan 24, 2010
Were can I find a complete list of commands for the terminal in ubuntu linux 9.10
View 9 Replies
View Related
Apr 9, 2010
The other day I was practicing some of the famous Awk One-liners and noticed something interesting in the bash shell on ubuntu 9.04. Some specific awk commands would execute correctly but when I tried to use an up arrow to re-run the command that particular command was not present in my history. Is this an issue specific to me? specific to awk? Completely random?
View 2 Replies
View Related
Jul 4, 2010
I have linux based photo editing software that I want to install so that it can be accessed through the Applications menu. Which system folder do I install it in? Or what terminal commands do I use to install so it is part of the system?
View 5 Replies
View Related