NAME
poikc - POE IKC (poeikcd) Client
SYNOPSIS
poikc -H hostname [options] args...
If you want to carry out the function of the module, do it like next.
poikc ModuleName::functionName args...
If you want to carry out a class method, do it like next.
poikc "ClassName->methodName" args...
If you want to carry out an event of the POE, do it like next.
poikc AliasName eventName args...
Options:
-H --HOST=s : default 127.0.0.1
-p --port=# : Port number to use for connection.
default 47225
-a --alias=s : session alias
default POEIKCd
eg)
-a=my_session_ailas
-s --state_name=s : state_name
(method_respond | function_respond | event_respond )
eg) -s=m | -s=f | -s=e
-state_name=my_event_name
--Utility=s : POEIKC::Daemon::Utility It is shortcut.
eg) poikc -U=get_VERSION
-U=get_stay, -U=get_load, -U=get_H_INC, -U=get_E_ENV
-o --output|out=s : output method
-o y | -output=YAML
-o d | -output=Dumper (Data::Dumper)
-Display : The parameter given to post_respond is confirm.
-h --help
Command:
Terminal
-T -Term : Terminal starting.
Terminal Command
history
With no options, display the command history list.
use Module::Name
eg) poikc -T
localhost:47225 POEIKCd> use LWP::Simple
localhost:47225 POEIKCd> ::get http://search.cpan.org/~suzuki/
@INC Operation
-I --INC=s : specify @INC/#include directory
eg1) -I ~/lib:/mylib/ or -I ~/lib -I /foo/lib/
eg2) poikc -I '$ENV{HOME}/lib'
--inc_=delete ~/lib : deletes from @INC.
--inc_=reset : @INC is reset.
eg:
poikc -I ( print Dumper \@INC )
poikc -I ./t ( unshift @INC, './t' )
poikc --inc_=delete ./t ( @INC = grep {$_ ne './t'} @INC )
poikc --inc_=reset
pokikcd server shutdown
poikc -H=hostname shutdown
eg:
poikc -U=get_VERSION
poikc -U=eval 'scalar `ps aux`'
poikc Cwd::getcwd
poikc LWP::Simple::get http://search.cpan.org/~suzuki/
poikc -o=d -U=publish_IKC my_alias_name my_package_name
poikc -o=d -U=publish_IKC my_alias_name _list event_1 event_2 ..
loop
# A loop is carried out 30 times.
poikc -D -U loop 30 Module::method args ..
# Carrying out a loop is continued.
poikc -D -U loop Module::method args ..
poikc -D -U stop Module::method args ..
poikc -D -U stop Module::method end_method args ..
relay
poikc -D -U relay MyModule::relay_start args ..
package MyModule;
sub relay_start { my @args = @_; '# Some processings';
return 'relay_1', @args1}
sub relay_1 { my @args1 = @_; '# Some processings';
return 'relay_2', @args2;}
sub relay_2 { my @args2 = @_; ... }
chain
poikc -D -U chain Demo::Demo::chain_start chain_1,chain_2,chain_3 abcdefg
DESCRIPTION
poikc is POE IKC (poeikcd) Client
AUTHOR
Yuji Suzuki <yujisuzuki@mail.arbolbell.jp>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.