Search Results

Search: Posts Made By: malcolmpdx
1,759
Posted By malcolmpdx
You might look at the faillog command, if your...
You might look at the faillog command, if your systems are linux. However, as near as I can tell, this doesn't catch things like ssh keybased auth.

In all likelihood, the most comprehensive way...
13,230
Posted By malcolmpdx
"find" isn't going to do what you want it to. It...
"find" isn't going to do what you want it to. It doesn't keep track of concepts like "newest". If you had a file that was, say, created by the last run of whatever you're tracing, you could use the...
6,966
Posted By malcolmpdx
Huh. I could have sworn I got different results...
Huh. I could have sworn I got different results when I tested this. Now, though, it behaves as you describe. I will claim tiredness as my excuse.
1,751
Posted By malcolmpdx
use write() instead of printf(). printf() is...
use write() instead of printf(). printf() is buffered, and the child has a copy of the buffer so it also will bring "before" and then print after.

changing the first printf to
...
4,149
Posted By malcolmpdx
I think that you're probably right - it might...
I think that you're probably right - it might very well be a start order issue.

To change the order, since you're running RH, edit the start scripts for named and ntpd in /etc/init.d and find the...
6,966
Posted By malcolmpdx
I don't think that will do what you describe. ...
I don't think that will do what you describe.

sed -e 's/pattern/replacement/g'

is a search and replace pattern. In your example, there's no replace, and nothing will be returned.

You...
Forum: Web Development 10-01-2010
1,598
Posted By malcolmpdx
Really, the only way to do this functionally is...
Really, the only way to do this functionally is with virtualization of the host(s). Or running them on separate boxes.

Consider a request to the two different servers. Assume two different IP...
16,882
Posted By malcolmpdx
/etc/nsswitch.conf determines the order that...
/etc/nsswitch.conf determines the order that various datasources that map names and IPs are used. If you don't have any uncommented entries in that, I suppose that means that whatever the system...
5,340
Posted By malcolmpdx
I think all you need to do is tail -f file...
I think all you need to do is

tail -f file | tr B F


to get what you want.
4,595
Posted By malcolmpdx
Tuning my.cnf settings is not trivial, and is...
Tuning my.cnf settings is not trivial, and is very dependent on the application.

Run that script I linked to. It will suggest a lot of different things you can tune.

Also, most...
1,549
Posted By malcolmpdx
rdcwayx is absolutely correct. Good catch!
rdcwayx is absolutely correct. Good catch!
1,090
Posted By malcolmpdx
Generally speaking, if you've successfully...
Generally speaking, if you've successfully installed via cpan, the module will be loaded into the system perl library directories, so all you need to do is

use Email::Stuff;


It looks like...
4,595
Posted By malcolmpdx
There are a lot you can find by google-ing. The...
There are a lot you can find by google-ing. The one I like is here:

http://www.day32.com/MySQL/tuning-primer.sh (http://www.day32.com/MySQL/tuning-primer.sh)
4,595
Posted By malcolmpdx
I suspect that those temporary tables are being...
I suspect that those temporary tables are being used to store large joins and other queries that you get as you use the site.

This indicates that your my.cnf file needs tuning. I would suggest...
Forum: Solaris 07-20-2010
2,891
Posted By malcolmpdx
Well, depending on what precisely is the case: ...
Well, depending on what precisely is the case:

1) you can't log into the console as a non-root user because your users aren't in the right group for console access.
2) you normally could log into...
7,279
Posted By malcolmpdx
By default, standard syslogd only listens on the...
By default, standard syslogd only listens on the standard syslog port.

So, I suspect that you would either need to use iptables to do some port re-mapping, or recompile the syslogd program from...
1,549
Posted By malcolmpdx
You've almost got it. find . -type f -name...
You've almost got it.

find . -type f -name *.c | grep -l foo | xargs perl -ie "s/foo\(bar\)/foo\(bar1\)"

or something like that. Figure out what uniquely identifies your foo command call and...
14,084
Posted By malcolmpdx
Assuming you mean "when does a process fail to...
Assuming you mean "when does a process fail to write to /dev/log?"

/dev/log is a semi-standard convention for syslog - syslog listens on this UNIX socket, and writes what is written there...
4,039
Posted By malcolmpdx
I think the issue is with the bit after ">>". ...
I think the issue is with the bit after ">>". The reason for this is that once you hit the shell redirect, the {} replacement no longer applies. I bet the one file you get is named "{}".

I would...
16,964
Posted By malcolmpdx
Just a few thoughts, necessarily general because...
Just a few thoughts, necessarily general because you didn't specify any performance parameters or any information on where the nameserver will be placed in your network architecture.

I would start...
8,416
Posted By malcolmpdx
Yes, definitely put SElinux back in enforcing...
Yes, definitely put SElinux back in enforcing mode after that test.

If I'm reading your original post correctly:


$ wget http://localhost <--- works
$ telnet localhost 80
GET / HTTP/1.1...
10,879
Posted By malcolmpdx
Something like this: find a \! \( -name a1...
Something like this:

find a \! \( -name a1 -o -name c2 -o -name d3 \)
8,416
Posted By malcolmpdx
Check SELinux, which I think comes enabled on...
Check SELinux, which I think comes enabled on Fedora.

As root:

# getenforce


If that returns "enforcing" then test to see if it's a problem by running


# setenforce Permissive


and...
1,735
Posted By malcolmpdx
Very nice. Thanks to all who contributed. I...
Very nice. Thanks to all who contributed.

I had forgotten (if I ever knew) that you could use $ as a line marker.
Forum: HP-UX 06-21-2010
7,076
Posted By malcolmpdx
It looks like your input file is all one "line",...
It looks like your input file is all one "line", and there's a hard limit in awk for the number of fields (space separated since that's the default behavior without '-F' being used with awk).

I...
Showing results 1 to 25 of 61

 

Featured Tech Videos

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