Programming :: How Break Points Work In GDB
Mar 24, 2011
I want to know that how the break points and watch points work in the GDB. I know the GDB works on symbol table. But would like to know more details of it. How watch points differ from break points.
View 3 Replies
ADVERTISEMENT
Jan 8, 2010
I'm going to write a script that flashes all AccessPoints in our network, with an expect script. Unfortunately the following code doesn't work.
Code:
spawn cat <file> | ssh root@$ip mtd -r -e linux write - linux
cat: invalid option -- o
Try `cat --help' for more information.
So it doesn't understand the pipe thing anymore. Is there a way to get this command working?
View 3 Replies
View Related
Feb 25, 2011
I have some variables that are loaded from mysql - in mysql, the line breaks are not indicated by ' or '<br>' or anything -they are just line breaks. the variable is loaded into javascript and then inserted into a <pre> element. the line breaks are not showing up.
pre1 = pre1.replace(/>/g,">"); - this works well, naturally. but how do i get those line breaks to show up as line breaks in a browser?
I've tried many variations of something like:
View 1 Replies
View Related
Jul 20, 2011
I have an array with 15 elements, and I want to break it down into three columns. When the array is split into a the three elements - however on the iteration, it does not conform to that structure.
Code:
#!/usr/bin/perl -w
use strict ;
[code]....
View 13 Replies
View Related
Feb 18, 2011
I have a large text file with three columns. I'm trying to write a PERL script that splits the file up based on the value of the 3rd column. So every time the third column reads 0, a new file is created and all the data up until the next 0 is found is written to that new file. This should happen over and over until the initial file has been entirely split up.
ex data:
000
2024
2243
2143
96962871
97972878
000
2034
3034
3352
So with the data above, the file would be split into two files:
data_1.txt would contain
000
2024
2243
2143
96962871
97972878
and data_2.txt would contain
230
2034
3034
3352
View 10 Replies
View Related
Dec 15, 2010
I have a clump of text that needs to be broke up:gdbm Sat 07 Feb 2009 03:28:18 AM EST libattr Sat 07 Feb 2009 03:28:18 AM EST db4 Sat 07 Feb 2009 03:28:19 AM EST mktemp Sat 07 Feb 2009 03:28:19 AM EST keyutils Sat 07 Feb 2009 03:28:20 AM EST pcre Sat 07 Feb 2009 03:28:21 AM EST setserial Sat 07 Feb 2009 03:28:24 AM EST zlib Sat 07 Feb 2009 03:28:24 AM EST gawk Sat 07 Feb 2009 03:28:25 AM EST readline Sat 07 Feb 2009 03:28:26 AM EST rhpl Sat 07 Feb 2009 03:28:28 AM EST cracklib-dicts Sat 07 Feb 2009 03:28:37 AM EST setools Sat 07 Feb 2009 03:28:37 AM EST hal Sat 07 Feb 2009 03:28:38 AM EST which Sat 07 Feb 2009 03:28:39 AM EST Is there a way to get everything after the EDT in the text to be moved to a new line?
View 13 Replies
View Related
Jan 15, 2011
I tried to summarize the this as best as possible in the title. I am writing an initial value problem solver in the most general way possible. I start with an arbitrary number of initial values at arbitrary locations (inside a boundary.) The first part of my program creates a mesh/grid (I am not sure which is the correct nuance), with N points total, that contains all the initial values. My goal is to optimize the mesh such that the spacing is as uniform as possible. My solver seems to work half decently (it needs some more obscure debugging that is not relevant here.)
I am starting with one dimension. I intend to generalize the algorithm to an arbitrary number of dimensions once I get it working consistently. I am writing my code in fortran, but feel free to reply with pseudocode or the language of your choice.Allow me to elaborate with an example:Say I am working on a closed interval [1,10]
xmin=1
xmax=10
Say I have 3 initial points: xmin, 5 and xmax
num_ivc=3
known(num_ivc)=[xmin,5,xmax] //my arrays start at 1. Assume "known" starts sorted
I store my mesh/grid points in an array called coord. Say I want 10 points total in my mesh/grid.
N=10
coord(10)
Remember, all this is arbitrary--except the variable names of course. The algorithm should set coord to {1,2,3,4,5,6,7,8,9,10} Now for a less trivial example:
num_ivc=3
known(num_ivc)=[xmin,5.5,xmax
or just
num_ivc=1
known(num_ivc)=[5.5]
Now, would you have 5 evenly spaced points on the interval [1, 5.5] and 5 evenly spaced points on the interval (5.5, 10]? But there is more space between 1 and 5.5 than between 5.5 and 10. So would you have 6 points on [1, 5.5] followed by 4 on (5.5 to 10]. The key is to minimize the difference in spacing.I have been working on this for 2 days straight and I can assure you it is a lot trickier than it sounds. I have written code that
only works if N is large
only works if N is small
only works if it the known points are close together
[code]....
So as you can see, I have coded the gamut of almost-solutions. I cannot figure out a way to get it to perform equally well in all possible scenarios (that is, create the optimum spacing.)
View 3 Replies
View Related
Jan 5, 2011
I want to get the last term of an unknown-sized text line, by usig the awk command. Is there any variable which points to the last term of a text line ? (obviously, y can obtain that term if i knew how many terms does the line have... i.e. awk '{print $12}' ; if we are talking about a 12-terms text line) I wonder if there is an option like $?, to get the last term.
View 2 Replies
View Related
Feb 19, 2010
I have a database with x number of files (192 at the moment, but will vary from time to time). I am going to copy these files to another location on the same server thorugh shell script. Problem with total size of 192 files is approx 900 GB (again this will vary from time to time).
My shell script should calculate the free space available at present in the server on each of the mount point (can be filled till it reaches 95%). Always 5% free space should be available free for future growth.
After calculating, it should prepare another flat file with following details:
View 14 Replies
View Related
Feb 18, 2011
We have a program that catalogs to 40 different mount points. The program is fine as long as thier is free space on at least one of the 40 mount points. My boss wants me to come up with a script that will email us daily to know how much overall free space is left. I know I can do a df but I don't know how to combine the 40 mount points into a single disk used/disk free report.
The 40 mount points are /dev/mapper/areaxx, xx being 01 to 40.
View 4 Replies
View Related
May 2, 2011
I've a question regarding two camera images. Suppose I've detected 2d window coordinate of 8 markers of an object in a scene in one camera and detected window coordinates of 10 markers of the same object on another camera.
I've detected the marker. It was easy. Now how do i know which window coordinates on two cameras are the coordinates of same marker? I mean there are markers captured on both cameras and some of them are representing the same marker in both cameras. I just like to know which ones are same on both cameras. Is it possible to find that out using opencv?
View 2 Replies
View Related
Apr 4, 2011
I have one more question about R.I have made a scatter graph, now I need to place a legend describing both data (red points) and lowess line (blue line with yellow triangles).How do I do that?Here is the graph-I have started it this way-> legend("topleft", pch=1, legend="h,srtm", fill=c("red","yellow"))Not sure about that.How do I describe the fill color, line style, etc.?
View 1 Replies
View Related
May 25, 2011
I have a big csv-file wich is not formatted very well. I clean it up with removing a lot of html etc, but some of the lines breaks where they are not supposed to.What I want to do is to check next line, if it starts with 'PX' I don't want to do anything, but if it does not start with 'PX' I want to merge the two lines. That is removing the newline character on line one and replace it with a space.Can this be done with sed? (or maybe with perl or something, but I'm more familiar with sed)I've been looking und the net to find a solution, but to no result.
View 8 Replies
View Related
Jun 7, 2010
I'm buying this unit from deal extreme: it's a bitorrent downloader, with NAS capability. I'm interested in sharing an external HD in it, with media and backup purposes. I'm afraid of energy problems (don't know if this is the correct term), corrupting my mounted drives (like after a storm), so I thought about buying an UPS that sends a "signal" to my Linux box, and a script in my Linux box would unmout everything to avoid problems.Do this "UPS signal" feature exists? Do you have model suggestions?
View 1 Replies
View Related
Sep 30, 2010
Could someone give me the break down on 4GB/700MB or what?
View 6 Replies
View Related
Dec 6, 2010
Sometimes I type 'sudo su - user' in linux and then realise I'm typing it from an application account rather than a user account. I want to ctrl+c to abort the password entry. When I do this, it always freezes for a couple of seconds before it aborts the process and returns me to the shell.
View 1 Replies
View Related
Sep 6, 2010
So I have this emerald theme I wanted to install on my Ubuntu 10.4 gnome installation that has compiz. I didn't know how to do this so i looked at http://ubuntuforums.org/showthread.php?t=495997 to understand how to do this and when did the steps which you will see her shortly, I got some errors and my windows broke to the point you can move them, close them and all you see is the menu bar and then the rest of the window down.
Code:
adam@adam-laptop:~$ sudo -i
[sudo] password for adam:
root@adam-laptop:~# compiz --replace -c emerald &
[1] 7435
root@adam-laptop:~# compiz (core) - Warn: Unknown option '-c'
[Code]...
View 9 Replies
View Related
Feb 14, 2011
I saw an interesting distro on Distrowatch, but the *.iso file needed a DVD rather than a CD. The target computer does not have a DVD player, and doesn't warrant spending any money on it. Is there a way to break the iso into CD lengths so I can install it? Or some other trick to get it going?
View 5 Replies
View Related
Feb 22, 2011
Im running ubuntu 10.10 with the default gnome. I have dual 23" LED monitors and I would like to take more advantage of my width by breaking up my screens into multiple custom size zones/grids. Basically so I can maximize a window and it only takes up that custom sized "grid zone". I remember there being a windows app to do this easily, but I havent found anything for gnome. Any recommendations? I dont think compiz grids has much flexibility into the sizes/locations of the "zones".
View 3 Replies
View Related
Apr 24, 2011
So a few weeks ago, I was running Ubuntu/Windows7 Dual Boot, and I installed the proprietary FGLRX ATI graphics card driver. This rendered my Ubuntu system command-line only, and I had to install all over again. If I install FGLRX now, will this happen again or has the bug been fixed? If it does happen again, is there any way to revert to the open-source ATI driver from the command line?
View 9 Replies
View Related
Jul 28, 2011
I have probably ranted so much about not being able to remove Ubuntu, how-ever I believe I have found a break-through, allowing me to once again install Windows XP onto my laptop.I was looking through the Microsoft/Windows website for something relating to XP, and I stumbled upon this bad-boy...Apparently it's an .iso for Windows XP! So I read over it and without hesitation, I downloaded it...I was then referred to something that was actually installed with Ubuntu called'Start-Up Disk Creator', which allows me to make an .iso bootable from a pen-drive...
So, because I recently re-installed Ubuntu (It broke after trying to install a game..) via Pen-Drive, I used the Universal USB Creator on the Ubuntu Website and it is quite similar to this..I will keep posted on my possible break-through on removing Ubuntu
View 5 Replies
View Related
Jul 31, 2011
Is there a way to break wubi out of its box? As in, resizing /dev/sdX and moving the current partition data onto there? Or would I have to do a fresh-install, and then copy over the post install data? The reason I'm asking is because, The desktop Wubi is currently running on, has migrated into a router(has some epic umph), and its reached its 30GB limit, and I also have the hard drive space to support it now.
System Specs:
AMD Phenom II 1090T @ 3.7Ghz(6 cores)
16GB DDR3 1600Mhz
2x AMD Radeon HD 6850s.
+2 NICs forgot brand :/
Off Topic but slightly relevant: Nic 1 = Server Switch, Nic 2 = Non-Server Switch.
Onboard NIC: Modem.
-facepalm- didn't look hard enough. [URL]
View 1 Replies
View Related
Apr 8, 2011
What does this command mean? grep 'GET / HTTP.*Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1' last10m |cut -d ' ' -f1 |sort -n |uniq -c|sort -n|tail
Whats the best way to figure out these commands in general? I have a lot of learning to do!
View 9 Replies
View Related
Feb 4, 2011
i'm using red hat enterprise linux 5,i want to know how can i break the grub passwd with out the use of live cd.
View 7 Replies
View Related
Jul 16, 2010
I noticed a very very high cpu usage on my webserver. All four CPUs were running on 100%.
Top shows several perl processes from apache that run for a long time, with a high %CPU.
Since the server was fc10, I did a fresh installation to fc13, and the fresh installation didn't have this issue. Then I loaded back all the user-data, and it started again.
Several, 4, 6, 8, ... 100 perl processes from apache.
lsof -p with the pid of such a process
Code:
The estabilished connection is sometimes "proud2pirate.com" wich is a non-existing domain.
View 14 Replies
View Related
Aug 4, 2011
I have installed the following packages:
[Code]....
You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
View 3 Replies
View Related
Feb 2, 2010
While I was trying to compile a C shared object library, I accidentally created two symbolic links which point to each other. Is there a way to get rid of them without nuking the whole directory? I read that the only way to break a symbolic link is to delete the file it points to, but I'm sure there must be another way.
View 3 Replies
View Related
Jul 9, 2010
Do you know a tool that forces me to do a typing break like the one in GNOME's keyboard preferences? I did some search on the net but I only found references to GNOME's typing break tool.
View 2 Replies
View Related
Jul 16, 2010
im looking for info on chroot jail and if you can break out of it. does anyone know where to find info?
View 1 Replies
View Related
Feb 14, 2011
I mistakenly ran 'iptables restart' on a server that was not set to run iptables. Immediately, the server quit making outgoing connections on port 80. It has problems completing a traceroute when another machine on the same VM Host can do everything just fine. One of our best networking technicians diagnosed it as issues with the TCP/IP stack on the OS.
I know that iptables is off, allowing all trafffic incoming/outgoing.
View 5 Replies
View Related