Search Results

Search: Posts Made By: kermit
Forum: Solaris 09-11-2011
12,005
Posted By kermit
Steve, there are various reasons why the sysadmin...
Steve, there are various reasons why the sysadmin would remove a compiler binary, not least of which is for security purposes. Not all systems need a compiler installed, and if not then there is no...
Forum: Linux 09-11-2011
1,577
Posted By kermit
Documentation is going to vary from distribution...
Documentation is going to vary from distribution to distribution. Generally speaking, there will of course be the core documentation (provided you have it installed - some distributions do not...
2,468
Posted By kermit
Perhaps GNU Parallel...
Perhaps GNU Parallel (http://www.gnu.org/s/parallel/) would be of some use to you. If you are interested in it (i.e., it seems promising), there is a video (part one of two) about it which you can...
11,884
Posted By kermit
Disclaimer: I am not a professional UNIX guy - I...
Disclaimer: I am not a professional UNIX guy - I work in a completely different field.

From my perspective, the number one most helpful thing you can do is to be constantly coding. This is...
25,703
Posted By kermit
#include <stdio.h> main() { int...
#include <stdio.h>

main()
{
int c;
int nl_cnt = 0;

while((c = getchar()) != EOF){

if(c == '\n'){
nl_cnt++;
printf("%d...
Forum: Programming 12-09-2010
1,214
Posted By kermit
Well your first problem is that 'If' is not a...
Well your first problem is that 'If' is not a keyword in C, whereas 'if' is. As an aside, you ought not put your call to strlen() inside the loop like you have. Change your code from:

for(i=0;i<...
Forum: Programming 09-29-2010
7,346
Posted By kermit
I doubt it would be different between Linux...
I doubt it would be different between Linux distributions. On my 64 bit machine, key_t is 4 bytes. It is trivial to test that on a 32 bit machine as well (I am guessing it is also 4 bytes). Now...
Forum: Programming 09-28-2010
3,678
Posted By kermit
sizeof() returns a size_t type. Instead of...
sizeof() returns a size_t type. Instead of casting k, you would do

size_t k;
Forum: Programming 09-28-2010
3,678
Posted By kermit
Assuming the version of GCC is recent enough (And...
Assuming the version of GCC is recent enough (And I assume that it is, as "Mandriva" only started shipping in late 2005, I believe), %zu (supported under C99) is also available.
Forum: Programming 09-28-2010
3,678
Posted By kermit
As an aside, whoever wrote the makefile was...
As an aside, whoever wrote the makefile was trying to be really aggressive with the optimizations. Perhaps they were using bad algorithms to start with, and thought to speed things up by cranking up...
Forum: Programming 09-23-2010
6,329
Posted By kermit
You need to assemble it: as...
You need to assemble it:

as (http://linuxmanpages.com/man1/as.1.php) your_prog.s -o your_prog.o

And then link it:

ld (http://linuxmanpages.com/man1/ld.1.php) your_prog.o -o your_prog

You...
Forum: Programming 09-16-2010
14,441
Posted By kermit
In general, fully buffered I/O will run quicker,...
In general, fully buffered I/O will run quicker, I think.
2,634
Posted By kermit
Check mail periodically with tcsh
A friend of mine is switching his email from one University server to a different one. He is using the tcsh, and on his current server, the shell will tell him (when the prompt is displayed) if...
1,973
Posted By kermit
$* vs. $@ [BASH]
In this (http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_02.html) document, the author has given a brief explanation of the Bash positional parameters, as well as some special variables, $*,...
6,645
Posted By kermit
Thank you. I ended up doing the following (It is...
Thank you. I ended up doing the following (It is not the complete script, but the part I asked about works well.)


cur_tmp=$(sensors | grep 'CPU Temp:' | awk '{ print $3 }')...
6,645
Posted By kermit
Mixing Perl with Bash
I am fiddling with a little script that will issue a shutdown command if the temperature on the CPU goes above a certain level. I started writing the script in Bash, and then thought I would like to...
1,789
Posted By kermit
Can't quite understand this regex
The following regular expression is found in a book I have been reading. It apparently can be used on an /etc/passwd file to find any accounts which have no password. I am having a heck of a time...
Forum: UNIX and Linux Applications 12-26-2008
9,547
Posted By kermit
Thanks - the search term 'cinoptions' worked well.
Thanks - the search term 'cinoptions' worked well.
Forum: UNIX and Linux Applications 12-19-2008
9,547
Posted By kermit
Setting vi indentation to k&r style?
A bit of searching on Google did not seem to yield any really helpful results on how to set vim to use k&r indentation style. I know Emacs has such a feature, but does vim? If so, how do I turn it...
2,260
Posted By kermit
Getting rid of files with no ownership
I am in the process of learning how to do system administration (just on my own Linux machine) and have been working with the find command. One of the things I tried was

find / -nouser -o...
Forum: Programming 09-14-2008
19,567
Posted By kermit
Ok, sorry for the wasted space, in the previous...
Ok, sorry for the wasted space, in the previous post; I should have supplied more info in the OP.

Anyway, I was fiddling around with strtod, and I wanted to test against the macro HUGE_VALF, which...
Forum: Programming 09-13-2008
19,567
Posted By kermit
math.h in makefile
Hey all,

How do I link the math library in a gnu make makefile? I have tried using -lm with the CFLAGS varibale - flags like -Wall and -ggdb work, but -lm does not. I am running gcc - 4.1.2 on a...
20,860
Posted By kermit
Ok thanks. I ended up rebooting, but the next...
Ok thanks. I ended up rebooting, but the next time I have an issue such as that with Firefox, I will give your suggestion a try.
20,860
Posted By kermit
When kill [pid] does not work...
Hi,

On my Linux machine, using Bash, I sometimes run into a situation where doing the following does not seem to work at all.

kermit@fastbox ~ $ ps -A | grep firefox-bin
5375 ? ...
Forum: Linux 05-18-2007
11,772
Posted By kermit
Ok, thanks - this confirms my suspicions. When...
Ok, thanks - this confirms my suspicions. When poking around in my kernel config (kernel 2.6.20) I could not seem to find any option for large memory support anyway, whereas I do remember seeing it...
Showing results 1 to 25 of 37

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