Search Results

Search: Posts Made By: borderblaster
1,980
Posted By borderblaster
script to generate core if cpu is high
Hi guys,

I need a script that will generate a core of a process when the process uses high cpu for a sustained period?

So for example if a process is using greater than 80% cpu for more than 30...
2,323
Posted By borderblaster
Remove lines of the same time stamp leaving the highest
Hi guys,

I have a log that looks like that below. Columns 2 3 4 5 6 7 is the date/time stamp separated by comma.

UUU,02,06,2010,10,00,00,00,0000000000000000,0000000000000000,0000000000001224...
7,637
Posted By borderblaster
hi hojung-yoon, I really like your solution....
hi hojung-yoon,

I really like your solution. I have tested it though and there is a problem that for example 07, 59, 59 gets rounded to 07, 60 ,00. Is there a way I can handle this so that it...
7,637
Posted By borderblaster
rounding time in perl
Is there a way I can round time in perl to the nearest five minutes?

For example if I have log giving the following time stamps

23,52,30 it would rounded up to 23,55,00

and

23,50,01 would...
1,646
Posted By borderblaster
really good guys thanks
really good guys thanks
1,646
Posted By borderblaster
Add up numbers for each day
Hi guys,

Is there an easy way I can add up the numbers in column $4 when the day of the week in column $1 is equal? So in the end I want an aggregate total for each day. e.g. 01,12,2009...
2,751
Posted By borderblaster
perl return ips after successful ping
Hi,

I have this script in ksh, what it does is loop every ip in the nodes_nso and produced another variable up_nodes_nso of only ip's that are up.

nodes_nso=$(cat /var/tmp/nodes.txt)

echo...
4,635
Posted By borderblaster
Thanks for that pludi, So what can I do...
Thanks for that pludi,

So what can I do then?

I can't use normal quotes because they are required in the nawk command that I want to run. I have tried escaping them but it doesnt work.
4,635
Posted By borderblaster
prevent ssh from executing result in shell
Hi,

I am writing a script on Solaris 10 and want to execute a remote ssh command. Normally this command should just return the value 0000000000002356 but when using ssh it seems it is passing the...
1,612
Posted By borderblaster
perl storing single value from file
Hi,

I have a configuration file that contains one word that I want to store as a variable to use later in my perl program.

i.e.

#cat /opt/dti/ssh_user
root

I want to store root as a...
4,466
Posted By borderblaster
Hi radoulov, many thanks for your help, it looks...
Hi radoulov, many thanks for your help, it looks like it is doing what I want.

To explain it, the first column is the process pid, and the 2nd column is the memory use, so I want to append the mem...
4,466
Posted By borderblaster
awk append to one line if first field is the same
Hi all,

How would I append the second field each time to one line if the first field is the same for example I have this data:


10430,187976
10430,251588
10430,262904
10430,275008...
2,524
Posted By borderblaster
append data to each line
Hi guys,

I need to investigate a memory leak on a solaris server, so what I have done is pmap'd each process on the system with a script which tar'd the directory every hour in cron. Now I need to...
7,234
Posted By borderblaster
tar command dont tar to original directory
HI,

if I have a tarfile called pmapdata.tar that contains

tar -tvf pmapdata.tar

-rw-r--r-- 0/0 21 Oct 15 11:00 2009 /var/tmp/pmapdata/pmap4628.txt
-rw-r--r-- 0/0 21 Oct 14...
1,407
Posted By borderblaster
on one line
why does this output appear on one line

#!/usr/bin/bash
pid=$(ps -eo pid)
echo $pid

PID 0 1 2 3 145 7 9 640 149 108 150 5185 637 5076 223 643 642 641 140 844 228 235 237 254 257 787 638 362...
21,886
Posted By borderblaster
script to loop all process ids and take pmap
Hi all,

I need a script that will loop around all the current processes and take a pmap -x <process id> and output each pmap to a separate file.

Would anyone have a quick command to do this?
Forum: Solaris 08-03-2009
12,817
Posted By borderblaster
ah ha jlliagre.... ive done a snoop and can see...
ah ha jlliagre.... ive done a snoop and can see the server sending ripv1 broadcasts, now I know where the default route has came from on the other server.

Thanks for that :-)
Forum: Solaris 08-03-2009
12,817
Posted By borderblaster
i thought that too but there isnt anything...
i thought that too but there isnt anything configured in /etc/defaultrouter. no dhcp it has static ip addresses.
Forum: Solaris 08-03-2009
12,817
Posted By borderblaster
solaris 10 u5 what happens if no default route configured
Hi,

I am new to solaris 10. What is the procedure the os takes if a default route is not configured? I am using a multihomed server with 4 interfaces. It looked strange to me this morning, because...
7,337
Posted By borderblaster
ignore negative number in script
Hi, does anyone know how to ignore whether a number is negative in a script. E.g. if I have a variable that contains -1200, how do I ignore the minus sign?
6,665
Posted By borderblaster
thanks for that, i found two other ways awk...
thanks for that, i found two other ways

awk ' ( length($0) >5 ) {print } '

and

egrep ".{6}" file.txt > new.file.txt
6,665
Posted By borderblaster
grep for greater than 12 chars
Hi, is there any way in grep to grep for a certain number of characters? For example I have a list of customerIDs, I want to grep for all greater than 12 characters?
5,603
Posted By borderblaster
so I have put this chown -R ftpuser:ftpuser...
so I have put this

chown -R ftpuser:ftpuser /opt/account

into the cron, but this only runs once a minute. Is there a way to this instantly?
5,603
Posted By borderblaster
automatically change owner and group
We have a program that when a new account is created using the webpage it creates a new directory on the linux filesystem for the account. The problem is the process that creates the directory is as...
32,462
Posted By borderblaster
running if statement on command line
Hi, is it possible to run an if statement from the command line?

I am doing this

[root@test]# service postgresql status; if [[ $? -eq 1 ]] ; then awk '{print ""$2""}' /root/file.txt
>

But...
Showing results 1 to 25 of 56

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