Search Results

Search: Posts Made By: mr_andrew
4,824
Posted By mr_andrew
Capture unexpected exit in shell script
Hi,

I have shell script that checks processes forever.
But somehow it is killed and I want to know what causes it.

while [ true ]
do
check the processes if they are running, if not restart...
Forum: HP-UX 04-07-2009
33,005
Posted By mr_andrew
ulimit -c unlimited
Hi,

I want to set the coredump to unlimited, but it seems it does not work.

[root@schassen]> ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) ...
4,673
Posted By mr_andrew
Hi, Yes I was logged on as root. I still...
Hi,

Yes I was logged on as root.
I still donīt receive the file when I try to fetch it.
Regarding the scp option I need to fetch the file automatically, not being prompted with a password. Or...
4,673
Posted By mr_andrew
rcp problem
Hi,

When I try to use rcp I donīt recieve the file I try to fetch.
I donīt get any error message, it just execute and as far as I can tell doesnīt do anything.

I have no problem with using...
2,045
Posted By mr_andrew
remsh variables
Hi,

I have script.

#!/bin/sh -x
CD=masterservice
remsh 132.196.133.185 -l root './export $CD > test.output'
rcp root@132.196.133.185:test.output

But I receive the following error.
+...
8,129
Posted By mr_andrew
The local system. [root@schassen]> remsh...
The local system.
[root@schassen]> remsh 192.168.133.185 ls -l root
permission denied
[root@schassen]>

On the remote system.
-rw-r--r-- 1 root root 21 Mar 26 15:33 .rhosts
...
8,129
Posted By mr_andrew
remsh from HP-UX to Solaris
Hi,

I have encountered a problem when I try to issue a remsh command to a remote system (Solaris).

I have created the .rhost file in the home directory on the remote system and added the...
Forum: HP-UX 02-10-2009
3,497
Posted By mr_andrew
Memory leakage
Hi,

I would like to check if I have a memory leakage.Therefore, I wonder if there exists a program that can check memory leakage on a executable in runtime over time. To determine if there is...
23,829
Posted By mr_andrew
Thanks a lot
Thanks a lot
23,829
Posted By mr_andrew
Thanks. But if I donīt know the process? I...
Thanks.

But if I donīt know the process? I want to find out the process which is using the port. I.e I would like to know which process uses port 80?
23,829
Posted By mr_andrew
Find what process on port number
Hi,

I am on a Sun Solaris and I want to find out which process is allocated on a certain port. How can I do that?

BR

Andreas
7,056
Posted By mr_andrew
Thanks a lot for your perseverance. I appreciate...
Thanks a lot for your perseverance. I appreciate it a lot. It helped me to rationalize the work. :)
7,056
Posted By mr_andrew
cat test END { if (t) print e,...
cat test
END {
if (t)
print e, "Total:", t
}
/\.exe/ {
if (t)
print e, "Total:", t
t = 0
e = $0
}
/Total/ { t += $NF }

#awk -f test nisse_081121_11.log
081125_08:38 ...
7,056
Posted By mr_andrew
I am sorry. I mixed it up I guess.. It works...
I am sorry. I mixed it up I guess..

It works with
awk -F= 'END {
if (t)
print e, "Total:", t
}
/\.exe/ {
if (t)
print e, "Total:", t
t = 0
e = $0
}
/Total/ { t += $NF...
7,056
Posted By mr_andrew
It did not work. I added AO Total = 3423...
It did not work.

I added
AO Total = 3423 Alarm Objects

Does awk interpret it as the same as without "Alarm Objects"?
7,056
Posted By mr_andrew
Thanks for your effort now it works. # awk...
Thanks for your effort now it works.

# awk 'END {
> if (t)
> print e, "Total:", t
> }

if (t)
> /\.exe/ {
> if (t)
> print e, "Total:", t
> t = 0
> e = $0 }
/Total/ {...
7,056
Posted By mr_andrew
awk '/Total|\.exe/' nisse_081121_11.log ...
awk '/Total|\.exe/' nisse_081121_11.log

081125_09:38 14315 2.32 SOM.exe
AO Total = 9002
AO Total...
7,056
Posted By mr_andrew
# awk 'END { > if(t) > print e, "Total:",t ...
# awk 'END {
> if(t)
> print e, "Total:",t
> }
> /\.exe/ {
> if (t)
> print e, "Total:", t
> t = 0
> e = $0
> }
> /Total/ { t +=$NF }
> ' nisse_081121_11.log
#

No output
7,056
Posted By mr_andrew
That worked fine.. It extracted all ao total..
That worked fine.. It extracted all ao total..
7,056
Posted By mr_andrew
It is HP-UX Itanium I didnt have the...
It is HP-UX Itanium

I didnt have the #!/usr/bin/sh first, but when I didnt see any output I added it.

[root@knasen]> awk
Usage: awk [-F fs][-v Assignment][-f Progfile|Program][Assignment|File]...
7,056
Posted By mr_andrew
# awk 'END { > if(t) > print e, "Total:",t ...
# awk 'END {
> if(t)
> print e, "Total:",t
> }
> /exe$/ {
> if (t)
> print e, "Total:", t
> t = 0
> e = $0
> }
> /Total/ { t +=$NF }
> ' nisse_081121_11.log
#
Nothing happened.. ...
7,056
Posted By mr_andrew
I am not entirely with you. I have put this...
I am not entirely with you.
I have put this piece of code in a file and try to execute it. But nothing happens.
./test < infile
7,056
Posted By mr_andrew
yes it is
yes it is
7,056
Posted By mr_andrew
Sorry I misunderstood :) 081125_08:38 ...
Sorry I misunderstood :)


081125_08:38 14315 2.39 SOM.exe

OPERATIONAL CONTEXT 1
AO Total = 8867
AO...
7,056
Posted By mr_andrew
Thanks for your reply. I donīt get it...
Thanks for your reply.

I donīt get it working though.

If I have an output with grep from one file that gives me
081121_13:43 8606 0.87 SOM.exe
081121_14:43 8606 1.85 SOM.exe...
Showing results 1 to 25 of 30

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