POE::Loop::Tk(3pm) User Contributed Perl Documentation POE::Loop::Tk(3pm)sub skip_tests {
return "Tk needs a DISPLAY (set one today, okay?)" unless (
(defined $ENV{DISPLAY} and length $ENV{DISPLAY}) or $^O eq "MSWin32"
);
my $test_name = shift;
if ($test_name eq "k_signals_rerun" and $^O eq "MSWin32") {
return "This test crashes Perl when run with Tk on $^O";
}
return "Tk tests require the Tk module" if do { eval "use Tk"; $@ };
my $m = eval { Tk::MainWindow->new() };
if ($@) {
my $why = $@;
$why =~ s/ at .*//;
return "Tk couldn't be initialized: $why";
}
return; }
NAME
POE::Loop::Tk - a bridge that allows POE to be driven by Tk
SYNOPSIS
See POE::Loop.
DESCRIPTION
POE::Loop::Tk implements the interface documented in POE::Loop. Therefore it has no documentation of its own. Please see POE::Loop for
more details.
POE::Loop::Tk is one of two versions of the Tk event loop bridge. The other, POE::Loop::TkActiveState accommodates behavior differences in
ActiveState's build of Tk. Both versions share common code in POE::Loop::TkCommon. POE::Loop::Tk dynamically selects the appropriate
bridge code based on the runtime environment.
SEE ALSO
POE, POE::Loop, Tk, POE::Loop::TkCommon, POE::Loop::PerlSignals.
AUTHORS & LICENSING
Please see POE for more information about authors, contributors, and POE's licensing.
perl v5.10.1 2010-04-11 POE::Loop::Tk(3pm)
Check Out this Related Man Page
POE::Resource(3pm) User Contributed Perl Documentation POE::Resource(3pm)NAME
POE::Resource - internal resource managers for POE::Kernel
SYNOPSIS
Varies, although most POE::Resource subclasses do not have public APIs.
DESCRIPTION
POE manages several types of information internally. Its Resource classes are mix-ins designed to manage those types of information behind
tidy, mostly private interfaces. This was done to facilitate testing and a conversion to C without the need to port POE::Kernel all at
once.
POE::Resource subclasses are generally different from one another, but there are some similarities to note.
Every resource should have an initializer and finalizer method. Initializers set up initial data and link resources into POE::Kernel.
Finalizers clean up any remaining data and verify that each resource subsystem was left in a consistent state.
One common theme in resource implementations is that they don't need to perform much error checking, if any. Resource methods are used
internally by POE::Kernel and/or POE::API classes, so it's up to them to ensure correct usage.
Resource methods follow the naming convention _data_???_activity, where ??? is an abbreviation for the type of resource it belongs to:
POE::Resource::Events _data_ev_initialize
POE::Resource::FileHandles _data_handle_initialize
POE::Resource::Signals _data_sig_initialize
Finalizer methods end in "_finalize".
_data_ev_finalize
_data_handle_finalize
_data_sig_finalize
Finalizers return true if a resource shut down cleanly, or false if there were inconsistencies or leaks during end-of-run checking. The
t/res/*.t tests rely on these return values.
SEE ALSO
POE::Resource::Aliases, POE::Resource::Events, POE::Resource::Extrefs, POE::Resource::FileHandles, POE::Resource::SIDs,
POE::Resource::Sessions, POE::Resource::Signals
Also see "Resources" in POE::Kernel for for public information about POE resources.
BUGS
None known.
AUTHORS & LICENSING
Please see POE for more information about its authors, contributors, and licensing.
perl v5.14.2 2012-05-15 POE::Resource(3pm)
I am doing the following and it returns with unknown operator. I am basically checking the file size, if it not empty then i need to get an e-mail, otherwise just say NO errors in the file. Need help
--------------------------------------------
COUNT = `wc -l output(filename)`
if
then
mailx... (8 Replies)
hi,
how would i go about making a loop which gets each line from a single text file, set it to a variable and then print it to screen?
thanks
eg:
#!/bin/sh
FILE="somefile.txt"
text_line=""
what kind of loop would use here? (18 Replies)
All,
I'm having a problem w/this function. Specifically, I want to call another function (get_stats) when the process in the else completes (the initial if and the elsif seem to work fine). But what's happening is the get_stats function call is running after the else runs only once, NOT when it... (8 Replies)
Hi I am trying to write a script which will loop through all files that end in ".txt" and ask user if they want to delete the file or not
#this print out all files
dir=/root/etc/
find $dir -name "*.txt"
output:
1.txt
2.txt
etc
but what i really want is
1.txt delete(Y/N):
2.txt ... (11 Replies)
hi all
I am new to unix and want to create a loop to repeat the loop and before that it ask me to do so.I know "while" may help but I put it in my work and getting stuk with it.any help appreciated. (13 Replies)
Hi,
from my Windows Workstation I can connect with PUTTY to an AIX 6.1 unix server.
On AIX via PUTTY I run DBCA which has a grphical interface.
Then :
#DISPLAY=local_host:0.0 ; export DISPLAY
$(hostname) $(whoami):/appli/oracle/product/10.2.0/db_1/bin#dbca
_X11TransSocketINETConnect()... (12 Replies)
Hi Guys,
I'm trying to find all files with a particular extension and then loop some actions. The problem is that if the files have spaces in their names I get end up being each word as a separate result rather than the entire file.
ext=".txt"
out=".rtf"
for i in $( find "$1" -name "*$ext" );... (9 Replies)
echo "The recreate was successfully completed for device file $LCL_CLN_FILE." >> $LOG_FILE
remaining=$(symclone -sid $LCL_SID -f $ETC/$LCL_CLN_FILE query | grep MB | awk '{print $2}')
if
then
while
do
echo "$remaining MB's to be copied........." >> $LOG_FILE
... (10 Replies)
I have the following chunk of code...
while
when I try to execute this script, it outputs an error "test: ] missing"
Is there a syntax error here? (9 Replies)
Hello,
Can some one help me with do-while loop command and writing the out put to a file. Below is the command I want to use.
Command: netstat -an |grep 1421 |grep "ESTABLISHED" |wc -l
thanks in advance. (11 Replies)
I am inputing three variables in the script where i am running loop for two times.so right now my output is coming like
A
B
C
A1
B1
C1
But i want output like
A
A1
B
B1
C
C1
Please suggest what i will do now ? Do i have to save the output in three different files or is there... (11 Replies)
Dear all,
I have a few files in a folder (lets say 5) and each have a few lines in them. I want to create merges of each of them with the other ones e.g.
I need the following merges
I tried to write a loop and started with combinations of 2, I get the write file names but for each... (17 Replies)
Good Morning
I think there may be something I dont understand fully.
The following code works well, but I dont like the set domen method.
#!/bin/bash
#
domen="y"
while
do
echo " M A I N - M E N U"
echo "1. Contents of /etc/passwd"
echo "2. List of users currently logged"
echo... (10 Replies)
Hello,
I have been stuck on this for some time and invested many hours trying to find a solution. I am trying to either loop through two variables or or two arrays and not sure how to do it. I am limited to ksh only, and don't have the ability to do a foreach, or for i AND for j etc...I... (19 Replies)