Please note that my code is following and not the previously posted -
Methyl,
answers to your queries -
# AIX OS -> 5.3.12.1 .
# Log file size varies from 30 KB to 0.13 GB daily.
# The number of times , we would try to start the component manager and stop it ,
we get the entry "component manager stopped" string in log file.
Please let me know any queries , looking fwd to your reply .
Hi
I am looking for the script which can move 1month old data from a TXT file.actully in this file data is appended on daily basis.pleasehalp me out.
Here is the file content :
$head abc.txt.
20070301130052,xxz.
20070307132111,cvasjchgjhcg
gacg
chjbgasjkchjk.... (3 Replies)
Hi
I have a script executing fine in Unix but in linux I am getting different result.
I have three files under /local/home/temp/Gen
test.sh
list.txt
shst.txt
Contents of test.sh
--------------------------
#!/bin/ksh
K=0;
SCRIPT_DIR=/local/home/temp/Gen
cat... (2 Replies)
Hi,
I am new to shell scripting and my below script is not giving result for 2 or more arguments. Can anyone help pls.
#!/bin/sh
sname=$(basename $(readlink -nf $0))
echo "This is $sname, running at $(date)"
echo "It is running on $(hostname)"
echo "Script being run by"
echo " User... (3 Replies)
I have five classes. 2 composition classes,1 aggregation class and 1 dependency class.I have coded all the classes but one of my test program is not giving me the expected result.I have the following classes:
TimeStamp
Interval (composition of 2 TimeStamps)
TimeSheet ( aggregation of many... (3 Replies)
my system get rebooted by its self after its came up i try to check the error log
P690/>errpt | more
Cannot open error message catalog /usr/lib/nls/msg/en_US/codepoint.cat.
The error report will still run, but it will not have explanatory messages
P690/>ls -lrt... (1 Reply)
Hi All,
OS: Linux 86x64 bits Red Hat Linux
I get the email alert for the following when Alert condition is set for 30:
/dev/sda1 99M 21M 74M 22% /boot
-> Below 30%(Should not get the email alert)
Expected output as per E-Mail alert:
/dev/sda3 20G ... (2 Replies)
Hi,
I hope someone can share there scripting fu on my problem,
I would like to delete the 3rd character from a random length of string starting from the end
Example
Output
Hope you can help me..
Thanks in advance.. (3 Replies)
I am seeing a scenario where in if the TIMEZONE environment variable value is set to nothing i.e. putenv "TIMEZONE=" the hardware clock is +1 to software clock.Pasted below the results displayed:
-> envShow
(global environment)
0: TSC_TIME_FROM_RESET=420150.971529 seconds
1:... (0 Replies)
Hello,
I am running below command as root user
#nodetool cfstats tests | grep "Memtable switch count"
Memtable switch count: 12
Where as when I try to run same command as another user it gives different result.
#su -l zabbix -s /bin/bash -c "nodetool cfstats tests | grep "Memtable switch... (10 Replies)
Hi,
i have a source file and have 3 columns and separated by "|" .i want to split this 3 columns in different variable.When i am executing this values indivisually giving correct result but when the same execute inside a for loop,it's giving issues.
Src file(jjj.txt)
-------... (8 Replies)
Discussion started by: raju2016
8 Replies
LEARN ABOUT SUSE
net::jabber::component
Net::Jabber::Component(3) User Contributed Perl Documentation Net::Jabber::Component(3)NAME
Net::Jabber::Component - Jabber Component Library
SYNOPSIS
Net::Jabber::Component is a module that provides a developer easy
access to developing server components in the Jabber Instant Messaging
protocol.
DESCRIPTION
Component.pm seeks to provide enough high level APIs and automation of
the low level APIs that writing a Jabber Component in Perl is trivial.
For those that wish to work with the low level you can do that too,
but those functions are covered in the documentation for each module.
Net::Jabber::Component provides functions to connect to a Jabber
server, login, send and receive messages, operate as a server side
component, and disconnect. You can use all or none of the functions,
there is no requirement.
For more information on how the details for how Net::Jabber is written
please see the help for Net::Jabber itself.
For a full list of high level functions available please see
Net::Jabber::Protocol and Net::XMPP::Protocol.
Basic Functions
use Net::Jabber;
$Con = new Net::Jabber::Component();
$Con->Execute(hostname=>"jabber.org",
componentname=>"service.jabber.org",
secret=>"XXXX"
);
#
# For the list of available functions see Net::XMPP::Protocol.
#
$Con->Disconnect();
METHODS
Basic Functions
new(debuglevel=>0|1|2, - creates the Component object. debugfile
debugfile=>string, should be set to the path for the debug
debugtime=>0|1) log to be written. If set to "stdout"
then the debug will go there. debuglevel
controls the amount of debug. For more
information about the valid setting for
debuglevel, debugfile, and debugtime see
Net::Jabber::Debug.
AuthSend(secret=>string) - Perform the handshake and authenticate
with the server.
Connect(hostname=>string, - opens a connection to the server
port=>integer, based on the value of
componentname=>string, connectiontype. The only valid
connectiontype=>string) setting is:
accept - TCP/IP remote connection
In the future this might be used
again by offering new features.
If accept then it connects to the
server listed in the hostname
value, on the port listed. The
defaults for the two are localhost
and 5269.
Note: A change from previous
versions is that Component now
shares its core with Client. To
that end, the secret should no
longer be used. Call AuthSend
after connecting. Better yet,
use Execute.
Connected() - returns 1 if the Component is connected to the server,
and 0 if not.
Disconnect() - closes the connection to the server.
Execute(hostname=>string, - Generic inner loop to handle
port=>int, connecting to the server, calling
secret=>string, Process, and reconnecting if the
componentname=>string, connection is lost. There are four
connectiontype=>string, callbacks available that are called
connectattempts=>int, at various places in the loop.
connectsleep=>int) onconnect - when the component
connects to the
server.
onauth - when the component has
completed its handshake
with the server this
will be called.
onprocess - this is the most
inner loop and so
gets called the most.
Be very very careful
what you put here
since it can
*DRASTICALLY* affect
performance.
ondisconnect - when connection is
lost.
onexit - when the function gives
up trying to connect and
exits.
The arguments are passed straight
on to the Connect function, except
for connectattempts and
connectsleep. connectattempts is
the number of time that the
Component should try to connect
before giving up. -1 means try
forever. The default is -1.
connectsleep is the number of
seconds to sleep between each
connection attempt.
Process(integer) - takes the timeout period as an argument. If no
timeout is listed then the function blocks until
a packet is received. Otherwise it waits that
number of seconds and then exits so your program
can continue doing useful things. NOTE: This is
important for GUIs. You need to leave time to
process GUI commands even if you are waiting for
packets. The following are the possible return
values, and what they mean:
1 - Status ok, data received.
0 - Status ok, no data received.
undef - Status not ok, stop processing.
IMPORTANT: You need to check the output of every
Process. If you get an undef then the connection
died and you should behave accordingly.
AUTHOR
Ryan Eatmon
COPYRIGHT
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.12.1 2004-08-17 Net::Jabber::Component(3)