Search Results

Search: Posts Made By: tmf33uk
1,393
Posted By tmf33uk
Thanks, panyam! That really helped. I was...
Thanks, panyam!

That really helped. I was getting really bogged down at one point. I´ve implemented your suggestion and it worked.

T.
1,393
Posted By tmf33uk
Help with awk
Hi there!

I´ve only done some shell scripting from time to time, so I could do with some help with a script I am trying to do.

I am trying to get my script to do the following:
1. check a...
1,806
Posted By tmf33uk
Regular expression matching
Hi,
I have a variable in my script that gets its value from a procstack output. It could be a number of any length, or it could just be a '1' with 0 or more white spaces around it. I would like to...
5,682
Posted By tmf33uk
Hi vgersh99, your suggestion worked,...
Hi vgersh99,

your suggestion worked, thanks.

I would never have guessed it cos I can´t see why I have to define and use another variable to compare values when pthread was already...
5,682
Posted By tmf33uk
Hi turk541, Your suggestion worked, thanks!...
Hi turk541,

Your suggestion worked, thanks! :o)

I have tested that if the number is matched it prints, and if it doesn´t, then it doesn´t print.

However, as the 4466 number could change...
5,682
Posted By tmf33uk
Help awking a 'head -1 file.txt' input
Hi there,

my ksh script collects a procstack trace for a particular pid and then greps it by a transaction id to find out the pthread ID:
---------- tid# 1876087 (pthread ID: 4466) ----------...
6,604
Posted By tmf33uk
Cut string from a line into a variable
Hi,
I am working on a ksh script and I´m stuck on the following:
I have to get the pthread_id from a procstack file for a particular tid#.
---------- tid# 1274057 (pthread ID: 1800) ----------...
15,015
Posted By tmf33uk
Wow! Thanks, Scrutinizer, that worked. It has...
Wow! Thanks, Scrutinizer, that worked. It has taken me a while to incorporate it into my script where it had to read the TID value from a file generated in a previous function. I have so much to...
15,015
Posted By tmf33uk
I definitely have to work on shortening my...
I definitely have to work on shortening my script. Thanks for the tip, Scrutinizer! :o)

However, either way I run it, it doesn´t do what I need it to do. Back to the file:

USER PID PPID ...
15,015
Posted By tmf33uk
Doh! Thank you! :o) T.
Doh!

Thank you! :o)

T.
15,015
Posted By tmf33uk
Scripting on AIX with awk
Hi,
I am very new to scripting, but I am very keen to learn.

Right now, I have an input file containing the output of ps -emo THREAD (in AIX) where the lines look something like this:

...
1,066
Posted By tmf33uk
Help with awk please
Hi,

I am writing a script that runs a "ps -emo THREAD"...x times and with a y wait in between runs. The idea is to catch processes that are hogging lot of CPU over prolonged period of time.
...
Showing results 1 to 12 of 12

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