Search Results

Search: Posts Made By: malcolmpdx
11,459
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
2,090
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...
5,179
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)
5,278
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...
4,297
Posted By malcolmpdx
Grep might differ depending on platform - the...
Grep might differ depending on platform - the systems man pages should help you figure that out. In the page quoted above, it's saying that a return value of 0 means a match was found, a return...
4,297
Posted By malcolmpdx
Since you're not checking the exit status of...
Since you're not checking the exit status of grep, this doesn't apply.

For example, given a file (or a process list, or whatever) containing this

foo
bar
baz


You could see if "baz" was...
2,461
Posted By malcolmpdx
find . \! -name \*.out That will match...
find . \! -name \*.out


That will match "." too, so be careful how you process it. You might want to do


find . -type f -a \! -name \*.out


to only find files.
4,297
Posted By malcolmpdx
First off, those should be backtics, (i.e. `) for...
First off, those should be backtics, (i.e. `) for the ISRUNNING line.

That code will look at the process table. If it finds any lines containing the name of the script "cca_monthly_load_file.ksh"...
1,545
Posted By malcolmpdx
Here's a pass at this in perl: ...
Here's a pass at this in perl:


#!/usr/bin/perl

use strict;
use warnings;

open (FILE,"noname.txt")|| die "file does not exist";
my @results;
while (<FILE>) {
if ($_ =~ m/:EOT/)...
Forum: Linux 06-09-2010
16,985
Posted By malcolmpdx
OK, I think I figured this out. If you don't...
OK, I think I figured this out.

If you don't have HISTTIMEFORMAT set, but do have a history file, and then set HISTTIMEFORMAT, your history will all show the same time.

If you then set...
9,150
Posted By malcolmpdx
I believe that on SCO, you can set ulimit...
I believe that on SCO, you can set ulimit settings that persist across boots (and logins) in /etc/profile or /etc/default/login.

It's likely that you edited one of those files previously.
Showing results 1 to 11 of 11

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