Sponsored Content
Full Discussion: Processes
Top Forums Shell Programming and Scripting Processes Post 302104426 by Krrishv on Thursday 25th of January 2007 06:08:46 AM
Old 01-25-2007
Anbu, it's showing me all the values not above 200000

crypto $ awk ' { tm=$4; sub("s","",tm); if( tm > 200000 ) print } ' procs.txt
1 ready idle 417s 0 /Application/ugsvols/bldata01/logs/imanscript1562.syslog
2 ready idle 247s 83997 13 /Application/ugsvols/bldata01/logs/imanscript1542.syslog
3 ready idle 2398s 106641 5 /Application/ugsvols/bldata01/logs/imanscript24717.syslog
4 ready idle 5118s 82692 15 /Application/ugsvols/bldata01/logs/imanscript16618.syslog
17 ready idle 81948s 1 /Application/ugsvols/bldata01/logs/imanscript27577.syslog
18 ready idle 86150s 1 /Application/ugsvols/bldata01/logs/imanscript15930.syslog
19 ready idle 99052s 1 /Application/ugsvols/bldata01/logs/imanscript8456.syslog
23 ready idle 241869s 1 /Application/ugsvols/bldata01/logs/imanscript7477.syslog
24 ready idle 400285s 1 /Application/ugsvols/bldata01/logs/imanscript5391.syslog
25 ready idle 491500s 1 /Application/ugsvols/bldata01/logs/imanscript26470.syslog
26 ready idle 496002s 1 /Application/ugsvols/bldata01/logs/imanscript12089.syslog
27 ready idle 573108s 1 /Application/ugsvols/bldata01/logs/imanscript18055.syslog
28 ready idle 598407s 1 /Application/ugsvols/bldata01/logs/imanscript26278.syslog
29 ready idle 597933s 3 /Application/ugsvols/bldata01/logs/imanscript9307.syslog
30 ready idle 685638s 1 /Application/ugsvols/bldata01/logs/imanscript28481.syslog
31 ready idle 691340s 1 /Application/ugsvols/bldata01/logs/imanscript8238.syslog
32 ready idle 584211s 3 /Application/ugsvols/bldata01/logs/imanscript8233.syslog
33 ready idle 728545s 1 /Application/ugsvols/bldata01/logs/imanscript22388.syslog
34 ready idle 755560s 1 /Application/ugsvols/bldata01/logs/imanscript22292.syslog
35 ready idle 756461s 1 /Application/ugsvols/bldata01/logs/imanscript19214.syslog

Last edited by Krrishv; 01-25-2007 at 07:31 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

co-processes

Is it possible to have a main script (i will call it main.ksh) that executes say, 4 other scripts (sub_prog_1.ksh, sub_prog_2.ksh etc..) from within this main.ksh (simultaneously/in parallel), have them run in the background and communicate back to main.ksh when complete? My guess is to use... (1 Reply)
Discussion started by: google
1 Replies

2. UNIX for Dummies Questions & Answers

processes

What command string will locate ONLY the PID of a process and ouput only the number of PID of the process? (1 Reply)
Discussion started by: mma_buc_98
1 Replies

3. Shell Programming and Scripting

I need some example of Co-Processes

I want to know how to work the Co-Processes in kornshell scripts. So, I very need some script about Co-Processes! thanks ...:) (3 Replies)
Discussion started by: javalee
3 Replies

4. Filesystems, Disks and Memory

processes

write a program create two processes to run a for loop which adds numbers 1 to n , say one process adds odd numbers and other adds even numbers (1 Reply)
Discussion started by: jayaram_miryabb
1 Replies

5. UNIX for Dummies Questions & Answers

Processes

Can someone tell how to find out how long a process has been running? I want to find something that is usually there that the paging system can check on. Thanks (4 Replies)
Discussion started by: Beetlejuice
4 Replies

6. UNIX for Advanced & Expert Users

Monitoring Processes - Killing hung processes

Is there a way to monitor certain processes and if they hang too long to kill them, but certain scripts which are expected to take a long time to let them go? Thank you Richard (4 Replies)
Discussion started by: ukndoit
4 Replies

7. Solaris

Identifying and grouping OS processes and APP processes

Hi Is there an easy way to identify and group currently running processes into OS processes and APP processes. Not all applications are installed as packages. Any free tools or scripts to do this? Many thanks. (2 Replies)
Discussion started by: wilsonee
2 Replies

8. UNIX for Dummies Questions & Answers

Processes

Hi all, I needed a little help. It's OS thing. Suppose I have 2 machine connect over a network, I will call my machines as M1and M2. If I copy a files from M1 to M2. What tasks are these two machine performing for copy to work. My assumption is that M1 is performing read action and... (1 Reply)
Discussion started by: vishwesh
1 Replies

9. Shell Programming and Scripting

Finding the age of a unix process, killing old processes, killing zombie processes

I had issues with processes locking up. This script checks for processes and kills them if they are older than a certain time. Its uses some functions you'll need to define or remove, like slog() which I use for logging, and is_running() which checks if this script is already running so you can... (0 Replies)
Discussion started by: sukerman
0 Replies

10. UNIX for Dummies Questions & Answers

processes

may i know a command to find processes not attached to a terminal?? (1 Reply)
Discussion started by: riya9
1 Replies
Agent::Driver::Syslog(3pm)				User Contributed Perl Documentation				Agent::Driver::Syslog(3pm)

NAME
Log::Agent::Driver::Syslog - syslog logging driver for Log::Agent SYNOPSIS
use Log::Agent; require Log::Agent::Driver::Syslog; my $driver = Log::Agent::Driver::Syslog->make( -prefix => prefix, -facility => "user", -showpid => 1, -socktype => "unix", -logopt => "ndelay", ); logconfig(-driver => $driver); DESCRIPTION
The syslog logging driver delegates logxxx() operations to syslog() via the Sys::Syslog(3) interface. The creation routine make() takes the following switches: "-facility" => facility Tell syslog() which facility to use (e.g. "user", "auth", "daemon"). Unlike the Sys::Syslog(3) interface, the facility is set once and for all: every logging message will use the same facility. If you wish to log something to "auth" for instance, then do so via Sys::Syslog directly: there is no guarantee that the application will configure its Log::Agent to use syslog anyway! "-logopt" => syslog options Specifies logging options, under the form of a string containing zero or more of the words ndelay, cons or nowait. "-prefix" => prefix The prefix here is syslog's identification string. "-showpid" => flag Set to true to have the PID of the process logged. It is false by default. "-socktype" => (unix | inet) Specifies the logging socket type to use. The default behaviour is to use Sys:Syslog's default. CHANNELS
All the channels go to syslog(), of course. AUTHOR
Raphael Manfredi <Raphael_Manfredi@pobox.com> SEE ALSO
Log::Agent::Driver(3), Log::Agent::Channel::Syslog(3). perl v5.10.0 2002-03-09 Agent::Driver::Syslog(3pm)
All times are GMT -4. The time now is 07:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy