Sponsored Content
Full Discussion: find a process age
Top Forums UNIX for Dummies Questions & Answers find a process age Post 97984 by MizzGail on Friday 3rd of February 2006 03:26:48 PM
Old 02-03-2006
Yes. sorry... ppid = 1.

The script will work, I was just wondering if there was a command that I didn't know about to get the age of a process....
thanks!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to find the File Age and wait for that...

Hi, I want to know my file is 1 hr 30 min old or not, If 1 hr 30 min old I will do some tasks in that file.. other wise I will wait to 1 hr 30 min and then do the tasks.. how to do it in Unix script? any idea? (3 Replies)
Discussion started by: redlotus72
3 Replies

2. Shell Programming and Scripting

how to find the chid process id from given parent process id

how to find the chid process id from given parent process id.... (the chid process doesnot have sub processes inturn) (3 Replies)
Discussion started by: guhas
3 Replies

3. HP-UX

How to find memory used by a process

Hi, Can anyone help me out in writing the shell scrip which monitors a process which is running and gives me the output of the memory being used by the process, I have the requirement of monitorig the memory usage of the process when it is running. Please help me out (3 Replies)
Discussion started by: vijayagiri
3 Replies

4. What is on Your Mind?

What is your age?

What is your age? (15 Replies)
Discussion started by: royal
15 Replies

5. Shell Programming and Scripting

Find the age of a file in Minutes

KSH: Please lt me know how to find the age of a file in minutes(Based on last modified time). ie, if the file was modified 15 Minutes ago, the output should be 15 (1 Reply)
Discussion started by: hari_anj
1 Replies

6. Shell Programming and Scripting

Find age of files...

I am trying to figure out how to look at only the following directory... /lcl/prd/data/dc003p/dump And search it for any files that have a .arc extension and are older then 24 hours. I have never done anything like this and have no idea where to start. I want to make sure it does not... (10 Replies)
Discussion started by: LRoberts
10 Replies

7. 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

8. Shell Programming and Scripting

Perl Find file age

Hi I can not say that i am new to perl but today i learned something new, i wanted to know age (last time file got modified) of file so i initially thought of using find -mtime command but when i googled it, i found perl solution for the same my $age = -M $ARGV ; print "$ARGV age is... (1 Reply)
Discussion started by: zedex
1 Replies

9. Programming

Find parent process (not process ID)

Hi: I have a program written in FORTRAN running on AIX platform. It is because missing of documentation and without root password, therefore we want to modify the program so that we can find out which script/program that call this FORTRAN program. I have google for few days, all of them are... (3 Replies)
Discussion started by: cstsang
3 Replies

10. UNIX for Dummies Questions & Answers

Help with "process age " script

I want a script that will identify all processes for a particular id and kill it if its running more than 5 hours. i have tried to make it but dont know how to find to retrive the process running more than 5 hours. tried below: ps -eo pid,etime,comm,user,tty | grep sas please help... (1 Reply)
Discussion started by: milan111
1 Replies
tapset::context(3stap)													    tapset::context(3stap)

NAME
tapset::context - systemtap context tapset DESCRIPTION
Context functions provide additional information about where an event occurred. These functions can provide information such as a back- trace to where the event occurred and the current register values for the processor. print_regs Print a register dump See function::print_regs(3stap) for details. pp Returns the active probe point See function::pp(3stap) for details. ppfunc Returns the function name parsed from pp() See function::ppfunc(3stap) for details. probe_type The low level probe handler type of the current probe. See function::probe_type(3stap) for details. execname Returns the execname of a target process (or group of processes) See function::execname(3stap) for details. pid Returns the ID of a target process See function::pid(3stap) for details. tid Returns the thread ID of a target process See function::tid(3stap) for details. ppid Returns the process ID of a target process's parent process See function::ppid(3stap) for details. pgrp Returns the process group ID of the current process See function::pgrp(3stap) for details. sid Returns the session ID of the current process See function::sid(3stap) for details. pexecname Returns the execname of a target process's parent process See function::pexecname(3stap) for details. gid Returns the group ID of a target process See function::gid(3stap) for details. egid Returns the effective gid of a target process See function::egid(3stap) for details. uid Returns the user ID of a target process See function::uid(3stap) for details. euid Return the effective uid of a target process See function::euid(3stap) for details. is_myproc Determines if the current probe point has occurred in the user's own process See function::is_myproc(3stap) for details. cpuid Returns the current cpu number See function::cpuid(3stap) for details. cpu Returns the current cpu number See function::cpu(3stap) for details. registers_valid Determines validity of register() and u_register() in current context See function::registers_valid(3stap) for details. user_mode Determines if probe point occurs in user-mode See function::user_mode(3stap) for details. is_return Whether the current probe context is a return probe See function::is_return(3stap) for details. target Return the process ID of the target process See function::target(3stap) for details. module_name The module name of the current script See function::module_name(3stap) for details. stp_pid The process id of the stapio process See function::stp_pid(3stap) for details. remote_id The index of this instance in a remote execution. See function::remote_id(3stap) for details. remote_uri The name of this instance in a remote execution. See function::remote_uri(3stap) for details. stack_size Return the size of the kernel stack See function::stack_size(3stap) for details. stack_used Returns the amount of kernel stack used See function::stack_used(3stap) for details. stack_unused Returns the amount of kernel stack currently available See function::stack_unused(3stap) for details. addr Address of the current probe point. See function::addr(3stap) for details. uaddr User space address of current running task See function::uaddr(3stap) for details. cmdline_args Fetch command line arguments from current process See function::cmdline_args(3stap) for details. cmdline_arg Fetch a command line argument See function::cmdline_arg(3stap) for details. cmdline_str Fetch all command line arguments from current process See function::cmdline_str(3stap) for details. SEE ALSO
function::print_regs(3stap), function::pp(3stap), function::ppfunc(3stap), function::probe_type(3stap), function::execname(3stap), function::pid(3stap), function::tid(3stap), function::ppid(3stap), function::pgrp(3stap), function::sid(3stap), function::pexecname(3stap), function::gid(3stap), function::egid(3stap), function::uid(3stap), function::euid(3stap), function::is_myproc(3stap), function::cpuid(3stap), function::cpu(3stap), function::registers_valid(3stap), function::user_mode(3stap), function::is_return(3stap), function::target(3stap), function::module_name(3stap), function::stp_pid(3stap), function::remote_id(3stap), function::remote_uri(3stap), function::stack_size(3stap), function::stack_used(3stap), function::stack_unused(3stap), function::addr(3stap), function::uaddr(3stap), function::cmdline_args(3stap), function::cmdline_arg(3stap), function::cmdline_str(3stap), stap(1), stapprobes(3stap) IBM
--- tapset::context(3stap)
All times are GMT -4. The time now is 05:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy