Search Results

Search: Posts Made By: the_learner
1,767
Posted By the_learner
Thanks guys! I did: export TERM="xterm" ...
Thanks guys!

I did:
export TERM="xterm"
And I also set the following in my ~/.vimrc:
set term=xterm

This seems to have sold the problem.

Unfortunately it doesn't work when I use...
1,767
Posted By the_learner
Bash/vi: Make file go away once I close it.
Hi Everyone,

It's a little difficult to explain what exactly I am looking for.

When I open a file in vi, and then close it, I get back the prompt, but I can still see the file on top. I don't...
Forum: Programming 12-03-2010
5,783
Posted By the_learner
Condition variables
Hi,

I am reading through the pthreads tutorial (https://computing.llnl.gov/tutorials/pthreads) and had a question on the example they have given for condition variables. Here is the code snippet:...
Forum: Programming 12-21-2009
2,943
Posted By the_learner
How about this: #include <stdio.h> int ...
How about this:

#include <stdio.h>

int
main()
{
char s[] = "Really "
"long "
"string ";

printf("s = %s\n", s);
}

Here is a quote from...
Forum: Programming 10-01-2008
5
7,377
Posted By the_learner
errno
Hey, Can I assume that for certain function calls, errno can never be set to a certain value.

More specifically, can I assume that for if the stat function call fails, the errno can never be...
1,863
Posted By the_learner
sorry, I should have put a better topic.. and I...
sorry, I should have put a better topic.. and I should have posted this in the 'UNIX for beginners' section.. my bad.
1,863
Posted By the_learner
simple issue..
I have a program. Everytime that I run that program ,it prints a disclaimer msg and prompts the user to accept the agreement (i.e: type 'y' or 'n').

Now I want to run the program multiple times...
10,099
Posted By the_learner
Thanks Porter and frank for your replies ! ...
Thanks Porter and frank for your replies !

frank_rizzo, do you mean use something like gprof ?
10,099
Posted By the_learner
Solaris and Linux system information.
Hey,

I have a program that takes more time on a solaris machine than on a linux machine. So I guess the best way to know whats going on is to compare the two systems ? CPU and Memory ? Is there...
Forum: Programming 12-06-2007
3,801
Posted By the_learner
Proter ! thats just awesome man... Thanks !!
Proter ! thats just awesome man... Thanks !!
Forum: Programming 12-06-2007
3,801
Posted By the_learner
sscanf !!
I have a string



Form this string, I want to extract



I am unable to do that with sscanf because of the space between the words. What else can I use?

#include <stdio.h>

char...
Forum: Programming 11-28-2007
12,600
Posted By the_learner
hey thanks a lot jim, that works !!
hey thanks a lot jim, that works !!
Forum: Programming 11-28-2007
12,600
Posted By the_learner
execlp to sort
Hi, I have a very small program where I call execlp() to execute sort.

Everything works fine. But sort has a -T option which can be used to specify a temporary directory. Now when I use -T with...
3,292
Posted By the_learner
hmm, I am sorry, by metadata I think I meant...
hmm, I am sorry, by metadata I think I meant Indirect blocks

what I mean is, whatever shell cmds I have to get a file size.. they will give me the total disk space occuiped by the file (data +...
3,292
Posted By the_learner
so there is no way to know the size occupied by data ?
I want to find out how many disk blocks are used by only data (and not metadata) by a file.

But as far as I can tell, if the file has holes, then there is no way to know this.

You can find out...
2,096
Posted By the_learner
thanks porter, I have the same putty setting.....
thanks porter, I have the same putty setting.. but still no luck :-|
2,096
Posted By the_learner
I am using bash
I am using bash
2,096
Posted By the_learner
oops, I am unable to upload the file, but I hope...
oops, I am unable to upload the file, but I hope you get the idea..
2,096
Posted By the_learner
display gets all meessed up,,,
Hi, I am using putty to connect to a linux machine.

hmm, this is a little difficult to explain...

Whenever I type something which is more than a line, then instead of going to the start of...
7,299
Posted By the_learner
use perl to get file type ?
Can anybody please tell me how can I determine whether a file is SYMBOLIC LINK, using the stat() function ?

So far I have this:

my @attrs = stat($fileName);
my $mode = $attrs[2];

What next...
Forum: Programming 09-17-2007
3,183
Posted By the_learner
Thanks buddy !!
Thanks buddy !!
Forum: Programming 09-17-2007
3,183
Posted By the_learner
question on conditional compilation
Hey, can I #define something outside the source file ?

I have a C program which uses #ifdef..

#ifdef ABC
... do this..
#else
... that ...
#endif

The usual way that I know of defining...
Forum: Programming 08-23-2007
3,622
Posted By the_learner
simple question on string concat
This is a simple question...

char *str = NULL;
int num = 0;
scanf ("%d", &num);
str = ???



I want str to point to the string num.txt

For e.g: If user enters num = 5,

str should...
Forum: Programming 08-10-2007
4,202
Posted By the_learner
How to implement an on-disk data structure
I have heard about on-disk data structures, but I am trying to understand how to implement it.

I want to write a program which is going to make use of a B-Tree which is so huge that whole of it...
32,043
Posted By the_learner
Brilliant ! that explains everything ! Thanks a...
Brilliant ! that explains everything ! Thanks a lot for your help. :)
Showing results 1 to 25 of 75

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