Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Legend986
Forum: Programming 02-02-2010
2,575
Posted By Legend986
Having some trouble with select() call in C
I have this while loop:


while (notdone) {

//Set the timers
waitd.tv_sec = 5;
waitd.tv_usec = 0;

FD_ZERO(&tempreadfds);
FD_ZERO(&tempwritefds);

FD_ZERO(&readfds); ...
1,975
Posted By Legend986
Thank You... I'm sorry if its a silly question...
Thank You... I'm sorry if its a silly question but what is the difference between owning and reserving a partition?
1,975
Posted By Legend986
Protecting access to partition
I am trying to setup a computer where only the database can read/write to a partition. Basically, all other entities should fail. One thing I was thinking about was making the database own the...
2,263
Posted By Legend986
Thank You. That works perfectly. I wanted to do...
Thank You. That works perfectly. I wanted to do this task in a directory recursively on the files and note down the file in which this was found. It was possible with grep but is there a way to make...
2,263
Posted By Legend986
For some reason, my grep doesn't work as expected
I am trying to find only those entries where 7018 and another number appear in the end of the line.


7018 2828 1423 2351
7018 2828 14887
2828 7018 1222
123 7018 1487


I am looking for a...
3,798
Posted By Legend986
Thank you for your replies. I was in fact looking...
Thank you for your replies. I was in fact looking at the extension capabilities of firefox in doing certain things with ease... I tried exporting the display to null but it says Error in opening the...
3,798
Posted By Legend986
Running a GUI without GUI
I was wondering if it is possible to run a GUI window (say Firefox) without actually showing up the window on the desktop but still make it do its own regular stuff (like maybe do something via the...
14,406
Posted By Legend986
Puzzling Problem: Going back to the previous directory
Hi,

I am trying to figure out if there is a way to make linux take me back to the previous directory I was working in. For instance, I am in

/home/username/directory1

Then if I cd into...
5,993
Posted By Legend986
@matrixmadhan: Thanks a lot... I have used an...
@matrixmadhan: Thanks a lot... I have used an almost similar approach from your script but slightly adapted for my own datasets. I will try timing both the approaches and will paste the result here....
1,811
Posted By Legend986
Actually I was thinking even PHP was not...
Actually I was thinking even PHP was not necessary but that being my core expertise, I thought I'd cover where it would be useful. Perl is more regex centric and so it seems to suffice for most large...
1,811
Posted By Legend986
Planning on writing a Guide to Working with Large Datasets:Need some feedback
In a recent research experiment I was handling, I faced this task of managing huge amounts of data to the order of Terabytes and with the help of many people here, I managed to learn quite a lot of...
3,721
Posted By Legend986
Thank You :) Just learning Unix so got curious in...
Thank You :) Just learning Unix so got curious in messing around with things...
2,838
Posted By Legend986
Yes... That is it... I used a while true loop...
Yes... That is it... I used a while true loop instead. Thanks a lot... :)
5,993
Posted By Legend986
Added to that, I have a small question (not so...
Added to that, I have a small question (not so sure if its silly though but can't seem to understand it completely)...

If I have four datasets like in the problem above and all I have to do is...
5,993
Posted By Legend986
Hmm... that's an interesting idea! :) I'd love to...
Hmm... that's an interesting idea! :) I'd love to try that out... Actually by the time I woke up, it was able to process some 1 TB (so that makes it 7 hours). I don't know how to formally write down...
5,993
Posted By Legend986
Sure. Thank You so much. I am open to any advice...
Sure. Thank You so much. I am open to any advice as I am more interested in learning :) Please let me know if there is some obvious mistake I am doing.

My perl code is:


open (FILE,...
5,993
Posted By Legend986
Making things run faster
I am processing some terabytes of information on a computer having 8 processors (each with 4 cores) with a 16GB RAM and 5TB hard drive implemented as a RAID. The processing doesn't seem to be...
2,838
Posted By Legend986
Thanks for the improvement :) Actually, on my...
Thanks for the improvement :) Actually, on my system, for some reason, the find command doesn't work. I mean, extraction is taking place but the gzipping part doesn't seem to work.

The first time...
1,403
Posted By Legend986
Need a regex
Hi,

I am trying to grep for the following type of string from a document given below:

12637 1239 3356 12956 7004 7004 7004 13381 13381


*> 12.0.1.63 ...
1,082
Posted By Legend986
An easy way to know is to type the following in a...
An easy way to know is to type the following in a unix shell. That's the exhaustive solution you can get.

man command-name

If I am not mistaken, skill and snice are now obsolete and were used...
3,075
Posted By Legend986
How about this? #!/bin/bash for FILE...
How about this?


#!/bin/bash

for FILE in `ls`
do
rm {};
done;


But even these can be used:

find ./ -maxdepth 1 -name "*" -exec rm {} \;

and

rm *

Note that rm does not...
2,838
Posted By Legend986
I never imagined, I would face so many problems...
I never imagined, I would face so many problems with a directory archived the wrong way :) In any case, I was able to convert a complete directory archive into a directory of archives. In any case,...
2,838
Posted By Legend986
Coming to think of it, I am now facing another...
Coming to think of it, I am now facing another problem. If the file is in the middle of execution, there is a chance that the cron will take even this file into consideration and execute a gzip on it...
2,838
Posted By Legend986
Thank You for the advice. There is a heavy...
Thank You for the advice. There is a heavy resource constraint so I will try to explore more. I could think of one solution and I would appreciate if someone could provide a better one...

I would...
2,838
Posted By Legend986
Converting Huge Archive into smaller ones
I have a 13G gz archive... The problem is that when I expand it, it goes to 300G and I don't have so much of hdd space. The file is a one huge file: rrc.tar.gz. What I want to do is to extract the...
Showing results 1 to 25 of 172

 

Featured Tech Videos

All times are GMT -4. The time now is 06:26 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy