Sponsored Content
Top Forums Shell Programming and Scripting ps showing inconsistent process start time Post 302377199 by jstrangfeld on Thursday 3rd of December 2009 10:41:04 AM
Old 12-03-2009
Well glad to see I am not alone. Anyone else have any thoughts / suggestions where to go from here?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

start a process at boot up time

Hi, I have a program that check the IP address and automatic update it to the DNS server. I would like to run this program when the computer bootup after pppd get a connection. How do I add it to the init file. Does any one have any information of how to do it. I run a Linux Mandrake as a... (1 Reply)
Discussion started by: vtran4270
1 Replies

2. Programming

get process start time

Hi all, I like to know how can I get currenlty running process start time and date , I know only porcess id in solaris and hp-ux and what is command to get same using ps with switch. Thanks Naeem (1 Reply)
Discussion started by: naeem ahmad
1 Replies

3. UNIX for Advanced & Expert Users

to get process start date and time

what is command to get same using ps with switch. I know process id, by specify process id. It should work on solaris and hp-ux I will be happy if for both different commands. (2 Replies)
Discussion started by: naeem ahmad
2 Replies

4. UNIX for Advanced & Expert Users

start time of a terminated process

Hi, I have a shell script which i am running. I want it's starting time (the time when the execution of the shell script started) in another shell script. Note that the process has already terminated when i need it's starting time.... else i could have used ps -f | cut -d" " -f5... But that's... (2 Replies)
Discussion started by: k_chaaya
2 Replies

5. UNIX for Dummies Questions & Answers

start process at assidned date and time

How can I start FTP at assigned DATE and TIME? (6 Replies)
Discussion started by: gd2003
6 Replies

6. HP-UX

HP UX start process at boot time

When I get start program at boot I read which run level /sbin/rcx.d runlevel=0.....x only read directory which directory name has UpperCase 'S' is not enough someone says that I need to reference another file which file I need to reference 1)/etc/rc.config.d/all file which parameter... (4 Replies)
Discussion started by: alert0919
4 Replies

7. Solaris

How to get process start date and time in SOLARIS?

how can I get the process start date and time? using ps command i can get the timstamp for a process, which are started today. and only date (MMM DD) for others. i need to get both for all the running process. please help. Regards, Jagadeeswaran.K (7 Replies)
Discussion started by: Jagadeeswaran.K
7 Replies

8. Linux

Process start time not showing correct time

Process start time is not showing the correct time: I had started a process on Jun 17th at 23:30:00. Next day morning when I run the command "ps -ef | grep mq", the process is showing the start date of Jun 17th but the start time is 00:16:41 Day/Date is setup correctly on the server. It... (2 Replies)
Discussion started by: hemangjani
2 Replies

9. UNIX for Dummies Questions & Answers

how to get start time of a running process

I am trying to see if a process is running what was its start time. here is the code that I am using if then echo 'Gateway output processing started.' else VAR=$(ps -ef | grep batch_output_x ) ... fi now the problem i see is when the process is running i get two... (3 Replies)
Discussion started by: akabir77
3 Replies

10. Shell Programming and Scripting

How to calculate time difference between start and end time of a process!

Hello All, I have a problem calculating the time difference between start and end timings...! the timings are given by 24hr format.. Start Date : 08/05/10 12:55 End Date : 08/09/10 06:50 above values are in mm/dd/yy hh:mm format. Now the thing is, 7th(08/07/10) and... (16 Replies)
Discussion started by: smarty86
16 Replies
MooseX::Role::Parameterized(3)				User Contributed Perl Documentation			    MooseX::Role::Parameterized(3)

NAME
MooseX::Role::Parameterized - roles with composition parameters SYNOPSIS
package Counter; use MooseX::Role::Parameterized; parameter name => ( isa => 'Str', required => 1, ); role { my $p = shift; my $name = $p->name; has $name => ( is => 'rw', isa => 'Int', default => 0, ); method "increment_$name" => sub { my $self = shift; $self->$name($self->$name + 1); }; method "reset_$name" => sub { my $self = shift; $self->$name(0); }; }; package MyGame::Weapon; use Moose; with Counter => { name => 'enchantment' }; package MyGame::Wand; use Moose; with Counter => { name => 'zapped' }; MooseX::Role::Parameterized::Tutorial Stop! If you're new here, please read MooseX::Role::Parameterized::Tutorial for a much gentler introduction. DESCRIPTION
Your parameterized role consists of two new things: parameter declarations and a "role" block. Parameters are declared using the "parameter" keyword which very much resembles "has" in Moose. You can use any option that "has" in Moose accepts. The default value for the "is" option is "ro" as that's a very common case. Use "is => 'bare'" if you want no accessor. These parameters will get their values when the consuming class (or role) uses "with" in Moose. A parameter object will be constructed with these values, and passed to the "role" block. The "role" block then uses the usual Moose::Role keywords to build up a role. You can shift off the parameter object to inspect what the consuming class provided as parameters. You use the parameters to customize your role however you wish. There are many possible implementations for parameterized roles (hopefully with a consistent enough API); I believe this to be the easiest and most flexible design. Coincidentally, Pugs originally had an eerily similar design. See MooseX::Role::Parameterized::Extending for some tips on how to extend this module. Why a parameters object? I've been asked several times "Why use a parameter object and not just a parameter hashref? That would eliminate the need to explicitly declare your parameters." The benefits of using an object are similar to the benefits of using Moose. You get an easy way to specify lazy defaults, type constraint, delegation, and so on. You get to use MooseX modules. You also get the usual introspective and intercessory abilities that come standard with the metaobject protocol. Ambitious users should be able to add traits to the parameters metaclass to further customize behavior. Please let me know if you're doing anything viciously complicated with this extension. :) CAVEATS
You must use this syntax to declare methods in the role block: "method NAME => sub { ... };". This is due to a limitation in Perl. In return though you can use parameters in your methods! AUTHOR
Shawn M Moore, "sartak@gmail.com" SEE ALSO
http://sartak.org/2009/01/parametric-roles-in-perl-5.html <http://sartak.org/2009/01/parametric-roles-in-perl-5.html> http://sartak.org/2009/05/the-design-of-parameterized-roles.html <http://sartak.org/2009/05/the-design-of-parameterized-roles.html> http://stevan-little.blogspot.com/2009/07/thoughts-on-parameterized-roles.html <http://stevan-little.blogspot.com/2009/07/thoughts-on- parameterized-roles.html> <http://perldition.org/articles/Parameterized%20Roles%20with%20MooseX::Declare.pod> http://www.modernperlbooks.com/mt/2011/01/the-parametric-role-of-my-mvc-plugin-system.html <http://www.modernperlbooks.com/mt/2011/01/the- parametric-role-of-my-mvc-plugin-system.html> http://jjnapiorkowski.typepad.com/modern-perl/2010/08/parameterized-roles-and-method-traits-redo.html <http://jjnapiorkowski.typepad.com/modern-perl/2010/08/parameterized-roles-and-method-traits-redo.html> http://sartak.org/talks/yapc-asia-2009/(parameterized)-roles/ <http://sartak.org/talks/yapc-asia-2009/(parameterized)-roles/> https://github.com/SamuraiJack/JooseX-Role-Parameterized <https://github.com/SamuraiJack/JooseX-Role-Parameterized> - this extension ported to JavaScript's Joose COPYRIGHT AND LICENSE
Copyright 2007-2010 Infinity Interactive This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.2 2012-01-12 MooseX::Role::Parameterized(3)
All times are GMT -4. The time now is 11:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy