Search Results

Search: Posts Made By: jeffpas
Forum: Red Hat 03-07-2013
4,772
Posted By jeffpas
RHEL 6.3: Monitor: UNKNOWN ???
Hi All,

I've been struggling with this problem for weeks to no avail.
When I go into Control Center-> Display Preferences my monitor is no longer recognized.

Instead, there is a red box which...
Forum: AIX 09-25-2008
23,442
Posted By jeffpas
ALLLLRIGHT.......... I got bold and...
ALLLLRIGHT..........

I got bold and commented out these lines in the daemon script:

##defined (my $pid = fork) or die "Can't fork: $!";
##exit if $pid;
##setsid ...
Forum: AIX 09-25-2008
23,442
Posted By jeffpas
Yes all that is well and good and I agree. I was...
Yes all that is well and good and I agree. I was the one who proposed cron in the first place. But this company wants something that runs 'continuously'.
I won a compromise by creating a daemon...
Forum: AIX 09-25-2008
23,442
Posted By jeffpas
I wonder if this has something to do with the...
I wonder if this has something to do with the fact that the dprdaemon program runs in the background (using 'fork').

I have found this page:

FGA: Mistakes to avoid when designing Unix dmon...
Forum: AIX 09-25-2008
23,442
Posted By jeffpas
shockneck: SRCsubsys: ...
shockneck:


SRCsubsys:
subsysname = "dprdaemon"
synonym = ""
cmdargs = ""
path = "/dplogs/dpr/dpr_daemon"
uid = 0
auditid = 0
...
Forum: AIX 09-25-2008
23,442
Posted By jeffpas
Okay I created the dprdaemon subsystem with this...
Okay I created the dprdaemon subsystem with this command:

mkssys -p /dplogs/dpr_daemon -s dprdaemon -u 0 -a "-D" -e /dev/null -i /dev/null -o /dev/null -R -S -Q -f 9 -n 15

I specifically put in...
Forum: AIX 09-23-2008
23,442
Posted By jeffpas
Does anyone else agree with my mkssys solution? ...
Does anyone else agree with my mkssys solution?

:confused:
Forum: AIX 09-22-2008
23,442
Posted By jeffpas
Pederabo Just clarifying- So you are...
Pederabo
Just clarifying-

So you are agreeing with Shockneck and saying that using the SRC would handle this problem better than an /etc/inittab entry, which is what I did at first?

You agree...
Forum: AIX 09-22-2008
23,442
Posted By jeffpas
I would have to assume then that the command for...
I would have to assume then that the command for doing this (in my instance) would be:

mkssys -p /dplogs/dpr_daemon -s dprdaemon -u 0 -a "-D" -e /dev/null -i /dev/null -o /dev/null -R -S -f 9 -n...
Forum: AIX 07-22-2008
23,442
Posted By jeffpas
Someone mentioned that perhaps since this program...
Someone mentioned that perhaps since this program runs in the background, that inittab thinks the program has ended and keeps respawning again and again.

But I don't know how to write a daemon...
Forum: AIX 07-21-2008
23,442
Posted By jeffpas
mkitab problem with /etc/inittab respawning
Hi All,

May be a dumb question to old AIX hacks, if so apologize.
I have worked with /etc/inittab on SCO, but apparently with AIX you should use the 'mkitab' command to add entries instead of...
3,773
Posted By jeffpas
I've got a way: ---------- #!/bin/ksh ...
I've got a way:

----------

#!/bin/ksh

file1="file1"
file2="file2"

nawk -F, 'BEGIN {
while ((getline < "'$file1'") > 0) {
file2_ar[$1] = $1;
file2_ar[$2] = $2;
file2_ar[$5] = $5;...
3,773
Posted By jeffpas
i'm beat ...
i'm beat
http://tbn0.google.com/images?q=tbn:JqFXDxygts_awM:http://www.voyantes.net/blogimages/050820donkey_dead.jpg
3,773
Posted By jeffpas
I did put that in: BEGIN{FS=OFS=","} { idx...
I did put that in:

BEGIN{FS=OFS=","}
{ idx = $1 SUBSEP $2 SUBSEP $5 SUBSEP $6 }
NR==FNR { fnew[ idx ] = $0; next }
{
if ( !(idx in fnew) )
$0 = $0 ORS fold[idx]
}
1


Not sure...
3,773
Posted By jeffpas
Thanks But something is awry. OKAY, If I...
Thanks
But something is awry.

OKAY, If I do:
nawk -f jeffawk file2 file1
------------------------
apples,pears,bananas,oranges,grapefruit,watermelon,pineapple...
3,773
Posted By jeffpas
Basically what this is is a logfile that has...
Basically what this is is a logfile that has alerts from a program.
The entries get dropped into a file continually. But some entries have the same date, transaction ID, location, alert code and...
3,773
Posted By jeffpas
File1: ---------------------------- ...
File1:
----------------------------
apples,pears,bananas,oranges,grapefruit,watermelon,pineapple
epples,pears,bananas,oranges,grapefruit,watermelon,pineapple...
3,773
Posted By jeffpas
Does anybody want to take a crack at this? My...
Does anybody want to take a crack at this?
My slow brain is simply not understanding.

If for example:

awk 'BEGIN{FS=OFS=","}
NR==FNR{a[$1]=$0; next}
a[$1]{$0=$0 RS a[$1]}{print}'...
3,773
Posted By jeffpas
it may be sickboys entry is similar...on phone...
it may be sickboys entry is similar...on phone will check when I get off
3,773
Posted By jeffpas
awking and grepping parts of files: the 'super diff'
OKAY----

Here's what I must do.
I have two files. I need to compare the two files such as with the diff command. I am adding FILENEW to FILEOLD

If fields $1, $2, $5, and 6 are the same,...
Forum: AIX 07-14-2008
9,888
Posted By jeffpas
bakunin, This appears to be a question that...
bakunin,

This appears to be a question that will never die.

I have since found a way (by creating a daemon that checks the logfile for any changes, every 20 seconds or so) to rig a solution,...
Forum: AIX 07-02-2008
3,652
Posted By jeffpas
Folks, it looks like AIX has a special command...
Folks, it looks like AIX has a special command called 'a2p', which will actually convert an AWK script on the fly into a functioning PERL program.

I took the ksh pipe out of the 'convert' script,...
Forum: AIX 07-02-2008
3,652
Posted By jeffpas
what is this forum, Jeopardy????? Can...
what is this forum, Jeopardy?????


Can anyone just give a plain answer, if they know how to do this.
I would be more than willing to do the same. My job is at stake here.

If you honestly...
Forum: AIX 07-02-2008
3,652
Posted By jeffpas
Unfortunately I am trapped because it looks as if...
Unfortunately I am trapped because it looks as if the shell variables aren't available within an AWK script.

$LOGCAT becomes $0, which just kicks up the entire line instead of a value.

Looks...
Forum: AIX 07-02-2008
3,652
Posted By jeffpas
It looks like I also have 'gawk' capability, and...
It looks like I also have 'gawk' capability, and can use this instead.
Not sure what the difference is. Seems basically the same.
Showing results 1 to 25 of 61

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