That works great, cabrao! Thanks a million! Just curious on how to have this output redirected back to the original file, if possible. Or will I have to have this output directed to a new file? I don't want the original file to grow out of control, as it is capturing all logins.
Maybe (if you can not redirect new output into original file) we could parse any lines in original file with a date older than 90 days? Any help is appreciated...
---------- Post updated at 10:03 AM ---------- Previous update was at 09:41 AM ----------
This is the original script to produce output file:
Is there a way to add what cabrao stated to this to minimize the size of my current forever-growing output file (/tmp/testfile1)? All help is greatly appreciated.
Trying to limit 1 login per account...
Setup:
We have 2 auth logins, one to the AIX (telnet)then into a distribution mgmt software, the users do not have a shell to log into on the AIX itself, so placing a script such as:
active=`who | awk '{printf",%s,\n",$1}' | grep ,$LOGNAME, | wc -l`
... (0 Replies)
By a shell script When I am logging into hosts one by one with ssh.
I am getting below message.
Pseudo-terminal will not be allocated because stdin is not a terminal.
stty: : Invalid argument
stty: : Invalid argument
Can you please suggest what should I do to stop this?
... (10 Replies)
Hi,
I need to run a script in two different login's in the same server, but it is running only in one login, i have used the corresponding PATH for each login, but still it says " not authorized to put msg in queue". (2 Replies)
Is the below logins are needed in the machine.....
nuucp , uucp ,smmsp , svctag , listen , webservd , ip ( We are not using printers),
Can you help in these?
Regards,
kumar (3 Replies)
Hi,
I've a shell script. If I trigger the script it takes one day to complete the execution.
I've to start the same script in 3 different logins of Unix machine simultaneously. Do you have any idea how can I make it? Please suggest.:(
Thank you.. (1 Reply)
Hi,
I’ve a shell script. If I trigger the script it takes one day to complete the execution.
I’ve to start the same script in 3 different logins of Unix machine simultaneously. Do you have any idea how can I make it? Please suggest.
Thank you..
Stop making the font size smaller than... (3 Replies)
Hello, I want to write a script that takes a username as input and outputs the user's logins sorted by duration. Also I want to exclude the "still logged in" entries.
I use the "last" command but Im having problems sorting the entries based on the duration.
Can you help me?
Thanks a lot =) (4 Replies)
Discussion started by: ddante
4 Replies
LEARN ABOUT MOJAVE
moose::meta::typeconstraint::ducktype5.18
Moose::Meta::TypeConstraint::DuckType(3) User Contributed Perl Documentation Moose::Meta::TypeConstraint::DuckType(3)NAME
Moose::Meta::TypeConstraint::DuckType - Type constraint for duck typing
VERSION
version 2.1202
DESCRIPTION
This class represents type constraints based on an enumerated list of required methods.
INHERITANCE
"Moose::Meta::TypeConstraint::DuckType" is a subclass of Moose::Meta::TypeConstraint.
METHODS
Moose::Meta::TypeConstraint::DuckType->new(%options)
This creates a new duck type constraint based on the given %options.
It takes the same options as its parent, with several exceptions. First, it requires an additional option, "methods". This should be an
array reference containing a list of required method names. Second, it automatically sets the parent to the "Object" type.
Finally, it ignores any provided "constraint" option. The constraint is generated automatically based on the provided "methods".
$constraint->methods
Returns the array reference of required methods provided to the constructor.
$constraint->create_child_type
This returns a new Moose::Meta::TypeConstraint object with the type as its parent.
Note that it does not return a "Moose::Meta::TypeConstraint::DuckType" object!
BUGS
See "BUGS" in Moose for details on reporting bugs.
AUTHORS
o Stevan Little <stevan.little@iinteractive.com>
o Dave Rolsky <autarch@urth.org>
o Jesse Luehrs <doy@tozt.net>
o Shawn M Moore <code@sartak.org>
o XXXX XXX'XX (Yuval Kogman) <nothingmuch@woobling.org>
o Karen Etheridge <ether@cpan.org>
o Florian Ragwitz <rafl@debian.org>
o Hans Dieter Pearcey <hdp@weftsoar.net>
o Chris Prather <chris@prather.org>
o Matt S Trout <mst@shadowcat.co.uk>
COPYRIGHT AND LICENSE
This software is copyright (c) 2006 by Infinity Interactive, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.18.2 2014-01-19 Moose::Meta::TypeConstraint::DuckType(3)