8 More Discussions You Might Find Interesting
1. AIX
(5 Replies)
Discussion started by: Vishal_dba
5 Replies
2. Shell Programming and Scripting
if ;then
echo "mrnet greater 5000"
gzip /var/log/mrnet.log
mv /var/log/mrnet.log.gz /var/log/mrnet.log.1.gz
if ];then
i=1
let i++
mv /var/log/mrnet.log.1.gz /var/log/vieux-logs/mrnet.log.$i.gz
else
echo "theres no... (1 Reply)
Discussion started by: Froob
1 Replies
3. Homework & Coursework Questions
Exercise:
Protection of WEB and DNS servers using the context-free rules for packet filtering:
- Protect your WEB-server, so that would be for him can be accessed by browsers, and could go to dns.
- Protect your primary DNS-server so that it could be to contact clients and secondary servers.... (1 Reply)
Discussion started by: numeracy
1 Replies
4. Cybersecurity
Exercise:
Protection of WEB and DNS servers using the context-free rules for packet filtering:
- Protect your WEB-server, so that would be for him can be accessed by browsers, and could go to dns.
- Protect your primary DNS-server so that it could be to contact clients and secondary servers.... (1 Reply)
Discussion started by: numeracy
1 Replies
5. IP Networking
Hi, wondering if anyone can suggest a tool to me that will let me either cut & paste hex or type it in for packet decoding.
I want to be able to decode a packet as done with tcpdump or wireshark, but I want to be able to manually input the hex myself. (2 Replies)
Discussion started by: Breakology
2 Replies
6. Programming
can anyone tell me how can i capture the packets. i have tried ethernet software to capture them but its not doing what i want it to do it (1 Reply)
Discussion started by: dazdseg
1 Replies
7. Shell Programming and Scripting
Hi,
I need some help.
Shell script counter. i need to add condition to check if counter is more than 10 and longer than 3 hours? it runs every 5 mins. it only check count and send email right now.
it runs in cron as below
gregcount.ksh gregdb 10 > /tmp/gregcount.out 2> /tmp/gregcount.err
... (1 Reply)
Discussion started by: pega
1 Replies
8. IP Networking
Hi,
Is there any way that i can directly take out the IP packet and see its contents.
Waiting for your answer ..............
Bye (4 Replies)
Discussion started by: manjunath
4 Replies
LEARN ABOUT DEBIAN
moosex::attributehelpers::trait::counter
MooseX::AttributeHelpers::Trait::Counter(3pm) User Contributed Perl Documentation MooseX::AttributeHelpers::Trait::Counter(3pm)
NAME
MooseX::AttributeHelpers::Counter - simple counter attribute
SYNOPSIS
package MyHomePage;
use Moose;
use MooseX::AttributeHelpers;
has 'counter' => (
metaclass => 'Counter',
is => 'ro',
isa => 'Num',
default => sub { 0 },
provides => {
inc => 'inc_counter',
dec => 'dec_counter',
reset => 'reset_counter',
}
);
my $page = MyHomePage->new();
$page->inc_counter; # same as $page->counter($page->counter + 1);
$page->dec_counter; # same as $page->counter($page->counter - 1);
DESCRIPTION
This module provides a simple counter attribute, which can be incremented and decremeneted.
If your attribute definition does not include any of is, isa, default or provides but does use the "Counter" metaclass, then this module
applies defaults as in the "SYNOPSIS" above. This allows for a very basic counter definition:
has 'foo' => (metaclass => 'Counter');
$obj->inc_foo;
METHODS
meta
method_provider
has_method_provider
helper_type
process_options_for_provides
Run before its superclass method.
check_provides_values
Run after its superclass method.
PROVIDED METHODS
It is important to note that all those methods do in place modification of the value stored in the attribute.
set Set the counter to the specified value.
inc Increments the value stored in this slot by 1. Providing an argument will cause the counter to be increased by specified amount.
dec Decrements the value stored in this slot by 1. Providing an argument will cause the counter to be increased by specified amount.
reset
Resets the value stored in this slot to it's default value.
BUGS
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to
cpan-RT.
AUTHOR
Stevan Little <stevan@iinteractive.com>
COPYRIGHT AND LICENSE
Copyright 2007-2009 by Infinity Interactive, Inc.
<http://www.iinteractive.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-01-02 MooseX::AttributeHelpers::Trait::Counter(3pm)