Programming :: Script Is Taking Hours, Hints On Better Alternative?

Jan 6, 2011

I need to compare two lists, and if a line exists in file 1, delete it from file 2. Here is what I am using, and it works on samples of a few hundred lines, but I have to get it to work faster on 50k lines. Has taken 7 hours so far and still no results.

result2 is master list, result1 is new list where i want every line to be completely unique--not in result2.

grep -vf result2.txt result1.txt | sed 's/ .*//' > diffs.txt

View 8 Replies


ADVERTISEMENT

Programming :: WM-hints And Moving Window?

Sep 7, 2010

I have a toplevel window that I want to place depending on another toplevel window. I use gtk_window_move(widget, x, y); At startup this function is called several times and y is changed ones from 412 to 413 and x is always 0(checked with gdb in netbeans). The window gets placed at x=10 and y=400 or so. If I do not use variables but pure ints for x and y it gets placed correctly even if its the same values. I suspect that my window manager notice this change of y and place the widget for me. Is this correct and how do I tell the WM not to do so?

This change of y is due to window size is just a local size and not the correct one as in X. Can i force uppdates from X to the local cache?

View 3 Replies View Related

Programming :: Named Hints Update Script?

Mar 27, 2011

I need help getting this bourne shell script working properly. This script I found online while reading some tutorials on getting a caching name server running, which is supposed to update the rootserver hints file.

The below case statement always returns that the hints file has failed. Even though when I check the file it looks normal and I can see the NOERROR status in the returned header.

Code: dig (at)e.root-servers.net . ns >root.hints.new 2> errors
case `cat root.hints.new` in
*NOERROR*)
# It worked

[Code]..

View 2 Replies View Related

Software :: Alternative To Audacity Decided Not To Be Able To Open The File It Saved 5 Hours Ago?

Feb 22, 2011

I have used audacity occasionally since... well, since ever. I grew annoyed by a very uncommon way to do the things, and for the occasional bug of the day (varying the bug depending on the concrete day, that is).

After I awoke in the morning to continue the editing, it seems that audacity decided not to be able to open the file it saved 5 hours ago (not much time to sleep, you see). I am looking for a piece of software that can do basic wave editing. I really don't need jack, ardour, rosegarden nor anything like that. I only do wave editing, and as said very occasionally.

So, is there any other wave editor that I can use instead of audacity? I don't even need it to be able to open the audacity .aup files. I will re-do the work if needed.

View 7 Replies View Related

Programming :: Process More Than 3 Hours Old From Shell Command?

Nov 14, 2010

My server pretty often becomes full up php processes running which are not needed. Is there a way to search for and kill any php process that is more than 3 hours old?

View 7 Replies View Related

Programming :: Kill Process More Than 3 Hours Old From Shell Command?

Nov 15, 2010

My server pretty often becomes full up php processes running which are not needed.Is there a way to search for and kill any php process that is more than 3 hours old? as I understand it, i need to use ps piped with awk. awk at the moment seems very complicated to me, do not how to start tackling it.

View 5 Replies View Related

Programming : Find Out Files That Are Changed Less Than 10 Hours With Grep Command?

Mar 20, 2010

Getting the list of files in the root directory that have changed less than 10 hours earlier, using grep, but without the directories.

View 1 Replies View Related

Programming :: Fgets() Function In Fedora10 Not Taking Any I/p In Aloop?

Oct 22, 2010

fgets() function does not work inside any loop or any function outside the main function in a c programe.i have debugged the programe using gdb and found that the the string conatins ' all times after execution for the first time. is ther not any functions that takes string as input including blanc space.

View 1 Replies View Related

Programming :: Taking Back Up Of Log File For Running Process?

Feb 16, 2010

I am working in HP UNIX. I have one process which is running continuously.There is log file generated for the process. I want to take back up of file without loosing any logs after particular interval of time or say file size increases more that 1GB.

View 3 Replies View Related

Programming :: Sockets - P2 - P3 Http Connection Taking More Time Than The Expected?

Mar 31, 2011

Iam using socket programming in one of my problem. The scenario is like this.

=>one module is working as a socket server(process p1) is able to handle client sockets on that port.
=>one module is working as socket client (process p2) is connected to server socket and Tx/Rx data on this socket. This module has some more threads, based on received data from server socket it will connect to http on other thread and get information...
=>one more module is working as socket client (process p3) is also connected to server socket and doing some other transactions.

Here my problem is when in presence of p2, p3 http connection taking more time than the expected. If we wont start p3(means only one server-client socket) then http connection is fast enough.

View 1 Replies View Related

Ubuntu Installation :: Install Multiple Distros On SSD Hints?

Dec 15, 2010

I dual booted Karmic on my old laptop. I just received my new machine, Envy 17 with a 160 GB SSD and a 640 GB hard drive with Windows 7 pre-installed. I want to multiboot Windows, Maverick and the CAElinux distro, on the SSD I am thinking. I am in the process of searching the forums in regards to partitioning strategies and hints to smooth the installs.

View 9 Replies View Related

Programming :: Linking Of Fortran Executable Taking Exorbitant Amounts Of Time?

Mar 24, 2010

The issue I am currently facing is more of an annoyance / curiosity, and it may not even be a problem, but it sure feels like one. Background: I am becoming a computational chemist (grad school begins in the fall) and the code I run is all in fortran. I am currently compiling with gfortran. When I compile the code (on a box running ubuntu server), everything appears to compile fine, but the linking stage is taking five to ten minutes. I ran the time command while making it and got the following results.

Quote:

time make
gfortran -c -O3 -fomit-frame-pointer -finline-functions -ffast-math suijtab.f
Linking testCompile ...
done

[code]...

I just don't understand why it is taking 5 minutes of real time if it only takes 10 - 15 sec of system time?

View 4 Replies View Related

Programming :: Bash Scripting - Taking User Input And Adding It To A Particular Area Of A File?

Jan 12, 2010

in bash scripting...say I want to take the input from a user via a question...I would do this:

Quote:

#!/bin/bash

echo "How large do you want this partition to be in GB (enter only the number)?" read PART_SIZE echo "You want your partition to be $PART_SIZE GB" But I don't want to echo it back to the screen, I want to add it to the content of /etc/fstab. I have been mucking around with sed to find the tmpfs partition in /etc/fstab and add the partition size attribute (this is to use the onboard RAM as a volatile partition)...but am not having any luck...

The portion of /etc/fstab that uses /dev/shm for the tmpfs partition is:

tmpfs /dev/shm tmpfs defaults 0 0

So, if a user says "24" GB to the answer (from above), how do I get it to automatically add that value to the tmpfs partition line in /etc/fstab? So it would look like:

tmpfs /dev/shm tmpfs size=24g,defaults 0 0

I understand that I would also have to come up with a way to put "size=XXg", which I could do with a copied over generic file before this action...then the script would have to find "XX" and replace it with the user's figure...

View 7 Replies View Related

Programming :: Alternative For Code: Wc -l Using Grep?

Mar 23, 2011

Can you find an alternative for Code: wc -l using grep?

View 1 Replies View Related

Programming :: Need Any Open Source Alternative To .net / VC++

Jan 2, 2011

I refuse to use .net for any of my apps since I hate using proprietary code that wont work on other platforms without using emulation.

However, I do like how all the hard work is done for you and you can spend more time implementing, then actually coding stuff like socket classes, date/time classes and other wrappers to make the complex C/C++ code easier to use and tie with each other I have a custom library that I've been adding to as I need stuff, but then I got thinking, there must be something out there with everything I need to code applications, that is easy to use and more reliable and efficient then anything I'd ever make.

Does such framework exist?

View 5 Replies View Related

Programming :: Convert Awk Alternative In C Program?

Jan 14, 2010

I wrote a bash script a few months ago and now I want to convert it to a C program. However, i used awk a lot in my script, and I don't know what to use in place of awk. The awk calls are simple, like string splitting and math, but I don't know of any replacement for the string splitting function. Are there any C libraries that include some sort of string splitting function?

View 4 Replies View Related

Programming :: What Is The Best Alternative For Borland C++ In Ubuntu

Oct 26, 2010

I'm using Borland C++ 5.02 in Windows. I just installed and updated my Ubuntu 10.10 last week.

Now I want to run my ".cpp" file under Ubuntu. What program did you use to run the program?

View 5 Replies View Related

Fedora X86/64bit :: 24 Hours Format To 12 Hours Format Lovelock?

Jul 27, 2011

I have a problem,I want to change the hour format from 24 hours to 12 hours, I cant find the way to do this,

View 14 Replies View Related

Server :: /etc/named.conf:57: Open: /etc/named.root.hints: File Not Found

Apr 1, 2011

I am using Cent OS 5.5 and i want configure DNS, but while configuring bind i am getting below error.

#/etc/init.d/named restart Stopping named: [ OK ]
Starting named:
Error in named configuration:
/etc/named.conf:57: open: /etc/named.root.hints: file not found[FAILED]

View 2 Replies View Related

Fedora :: 15 Crashes After A Few Hours

Jun 6, 2011

I've recently moved from Ubuntu (after moving from Gentoo and Arch) to Fedora 15 and am experiencing some crashing.

What happens is after a few hours or not particularly hard usage (web browser, a couple of terminals, maybe having run a few Ant scripts etc) all the fans seem to go into serious overdrive. I can't move the mouse and the system doesn't respond to any keyboard input. After about five minutes of this, the fans slow down but the system remains unresponsive. I've left it for a further 30 minutes, still nothing so I have to do a hard reset.

My hardware is a stock laptop Compal IFL90. Besides the standard installed software, the only other things I've installed are;

- Sun JDK (and Eclipse, but not running during crash)
- Pogo Plug software (pogoplugfs which is started on login)
- Cryptkeeper for my encfs stuff
- Opera

Can anyone point me to a possible fix, or let me know what other information is needed to try and get more complete support? It's not to much of a problem at the moment, but when I start using my laptop more frequently, having to power cycle every few hours is going to make is to difficult to use.

Code:

View 3 Replies View Related

Debian Configuration :: No Network After Some Hours

May 25, 2011

I have a computer home that I use a web server and I had Lenny in it for about a year and didn't experience any problems. Recently I needed to update to Squeeze just to be able and use part of my server for a game(which I couldn't compile on Lenny). I renamed every "lenny" word in the /etc/apt/sources.list with "squeeze" and ran dist-upgrade. Everything seemed fine(minor some "link not found" warnings). I also had some minor problems with the mysql configuration after the update but I managed to fix them all. Then I noticed that after some hours(not sure how many) I can suddenly not reach my computer via ssh. Neither can I visit my website(even from the local network). The computer doesn't appear either in the router's "attached devices" list. My other computers have no problems so it can't be a router issue.Pinging from the server to the outside world doesn't work. I tryied "sudo /etc/init.d/networking restart" and that didn't do anything. The only way to fix the problem is by rebooting but then again after some hours the problem is still there. Do you guys have any idea what the problem can be?

View 1 Replies View Related

Fedora :: Time Keeps On Changing 7 Hours

Sep 18, 2010

I have an Asus laptop with both Win7 and Fedora. Whenever I change the time in Fedora to the correct time and reboot into W7 the W7 time is messed up - about 7 hours earlier. If I set W7's time to the correct time and then reboot to Fedora, Fedora's time is then 7 hours early. For some reason I can't get both OS's to agree it's the same time.

View 10 Replies View Related

Ubuntu :: Clock 3 Hours Behind On Boot Up

Jun 10, 2010

Everytime I boot up my computer the clock is 3 hours behind. I have Ubuntu 10.04 LTS and had it on another computer and never had this problem before.

View 3 Replies View Related

Ubuntu Networking :: Wi-fi Disconnect Every Few Hours?

Sep 25, 2010

Periodically, about 3 to 5 hours, Ubuntu disconnects from my wi-fi network and doesn't reconnect until I restart the router.This is an Ubuntu specific issue, since it doesn't happen when I boot into my Windows partition, and it doesn't happen to other computers on the network.

View 2 Replies View Related

Ubuntu Installation :: Upgrade To 10.4 Over 12 Hours?

Oct 8, 2010

I was liking 10.4 in Virtual Box so much that I installed it to my laptop and then, after a very good experience, upgraded my other two Ubuntu machines. One went well, but this other one - the oldest - that has been on Ubuntu for years, is having trouble. The upgrade dialog is predicting another 12 hours and it's been at least 12 hours already. The log is moving swiftly and shows no sign of trouble.

View 2 Replies View Related

Ubuntu :: Machine Cannot Go 24 Hours Without Freezing

Nov 23, 2010

I have been battling with my machine for a while now, it cannot go 24 hours without freezing, I leave it on at night and in the morning it is frozen. I want to use it as a content server to my mobile devices but I have to be home to use it because it always needs a reset. I did a memtest and there were many errors, I realized that my ram voltages were under the min req. I boosted the voltage and ran memtest for 48 hours, no errors. This machine used to be stable for over two years, same hardware, I switched the case and now it wont last a day.

I am running 10.10 64bit, I would post log files but I dont know which one would be useful. I believe it becomes unstable when the screensaver activates. Also sometimes it wont fully boot but will go to the command line and other times it will give random error messages when grub is trying to load. Every week I solve one problem and then something else goes wrong. I have been using ubuntu since hardy on this machine and only lately (10.04 & 10.10) have the problems been occurring.

View 9 Replies View Related

Ubuntu :: Vpnc Disconnects After About 8 Hours

Feb 13, 2011

I've seen a problem staying connected to a Cisco VPN, this goes back a number of years.I was running 8.10 and it was fine.After I moved to 9.10, the problem started happening.My VPN connection to work would drop after 8 hours.I looked around for a while and ended up compiling the cisco provided client which works fine (but is a pain).I've been running 9.10 on my work laptop, and it experiences the same problem using vpnc, but I've been dealing with it because it's easier than using the Cisco client.

I installed 10.04 on my work desktop, my home desktop, and a personal laptop that was previously running 8.10, and all experience the same problem with vpnc.I even go so far as to keep one terminal open with a constant ping all day and it still drops after about 8 hours. A couple of others at work experience the same problem using vpnc. This is not a problem using the Cisco provided client, or running it on windows or os/x.Has anybody else seen this, or have any ideas on what I can start looking for to get this addressed?

View 1 Replies View Related

Ubuntu :: Computer Freezes After Several Hours?

May 29, 2011

I've a new Dell Precision T1500, Core i5, 8gb RAM, nvidia graphics card, that seems to freeze after some hours. I'm not sure how long exactly, more than two hours at least.

OS: Ubuntu 11.04
Cause: leave computer turned on, unattended for some time >2hrs.
Symptom: Screens are blank, no response to keyboard or mouse input, reboot is only way to rectify.

Things I've tried:Turn off screen saver

Disable "Sync to VBlank"
Disable screen power management, screen stays "on" always

So far none of these have corrected the issue. The screens are still on, but there is nothing displayed. Same thing did happen with Ubuntu 10.10, I'd hoped maybe 11.04 would fix it, alas, no.

View 6 Replies View Related

General :: Incorrect Time - Looks Like It's Exactly 4 Hours Behind ?

Jul 24, 2011

A few hours ago, I ran "pacman -Syu" to update, and soon after it was finished the power went out for a few seconds, turning off my computer without properly shutting down. When I started it, the time was wrong (or maybe the time zone, since the minute is correct). It looks like it's exactly 4 hours behind (right now it's 18:53 here, but the date command says 14:53). Also, I have ntpd running, in case that matters.

View 4 Replies View Related

Software :: Squirrelmail Sent Items Are 12 Hours Off?

Oct 14, 2010

I have a Ubuntu 10.4 server box running Postfix and dovecot. I use Squirrelmail as a web interface. It all works great except that sent mail from squirrelmail has exactly 12 hour difference. Example I send an email at 3:00pm it shows up in sent items as 3:00 am

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved