07-27-2011
Use the -i option for providing the input file. Also you can define an output file by using -o option.
For eg:
srvrmgr -g $GatewayServerName -e $EnterPriseName -u $User -p $Password -i comp_commands.inp -o comp_commands.csv
enjoy!
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
HI,
Where is the script for /server-status handler located? Can i change code of the script somehow?
Thank you all (3 Replies)
Discussion started by: solvman
3 Replies
2. Shell Programming and Scripting
Hello,
From reading prior "threads", my script looks like this:
#!/bin/ksh -x
ftpresults=`ftp -nv $ftphost1 << EOB
user $ftpuser $ftppwd
put $ftp_file $ft
put $ftp_file $ft1
bye
EOB`
ftp_ctr=`echo $ftpresults | grep "226 Transfer complete" | wc -l`... (4 Replies)
Discussion started by: blt123
4 Replies
3. Shell Programming and Scripting
Hi all
below is a snippet of my perl codesystem ("scp -pq $dest_file $path");How i can i trap the return status? ie if the scp fails how can i know ? (2 Replies)
Discussion started by: new2ss
2 Replies
4. Programming
Please tell me according to C/C++ socket programming; how client can check whether server is running or not during TCP communication. (1 Reply)
Discussion started by: mansoorulhaq
1 Replies
5. UNIX for Dummies Questions & Answers
Hello,
Sorry for my english.
I have an arcade site.
mydomain.com/game.html If database has the game name is good.
mydomain.com/fd43f54.html if database has not the game name redirect to mydomain.com by 302 error code.
if database has not the game name i want a 301/404 error code and no... (0 Replies)
Discussion started by: hoo
0 Replies
6. Shell Programming and Scripting
hello frnds,
im using a script to stop, reset and to start the siebel server..
i'm able to extract the enterprise name, siebel server name and siebel root path..
when i try to use these info in the script im unable to perform the reset_server -r <siebel root> -e <enterprise name> +-M... (3 Replies)
Discussion started by: kaushik_87
3 Replies
7. Shell Programming and Scripting
Hi all,
Using sh/csh, unfortunately shell scripts are not my strong suit.
Trying to write a script that gets called from a program for pre-processing.
The program passes individual components of a UNC (//server/path1/path2/filename).
Thus the unc path of: //server/path1/path2/filename, is... (7 Replies)
Discussion started by: Festus Hagen
7 Replies
8. Shell Programming and Scripting
Hi All,
I would like to connect from "Instance A" to "Instance B" with the help of sftp.
Where as Instance B is having clustered servers ( 2 servers pointing same instance ).
Now, my question is before connecting to "Instance B" from "Instance A" how do know whether server is running or not.... (3 Replies)
Discussion started by: Girish19
3 Replies
LEARN ABOUT DEBIAN
poe::component::irc::plugin::autojoin
POE::Component::IRC::Plugin::AutoJoin(3pm) User Contributed Perl Documentation POE::Component::IRC::Plugin::AutoJoin(3pm)
NAME
POE::Component::IRC::Plugin::AutoJoin - A PoCo-IRC plugin which keeps you on your favorite channels
SYNOPSIS
use POE qw(Component::IRC::State Component::IRC::Plugin::AutoJoin);
my $nickname = 'Chatter';
my $server = 'irc.blahblahblah.irc';
my %channels = (
'#Blah' => '',
'#Secret' => 'secret_password',
'#Foo' => '',
);
POE::Session->create(
package_states => [
main => [ qw(_start irc_join) ],
],
);
$poe_kernel->run();
sub _start {
my $irc = POE::Component::IRC::State->spawn(
Nick => $nickname,
Server => $server,
) or die "Oh noooo! $!";
$irc->plugin_add('AutoJoin', POE::Component::IRC::Plugin::AutoJoin->new( Channels => \%channels ));
$irc->yield(register => qw(join);
$irc->yield(connect => { } );
}
sub irc_join {
my $chan = @_[ARG1];
$irc->yield(privmsg => $chan => "hi $channel!");
}
DESCRIPTION
POE::Component::IRC::Plugin::AutoJoin is a POE::Component::IRC plugin. If you get disconnected, the plugin will join all the channels you
were on the next time it gets connected to the IRC server. It can also rejoin a channel if the IRC component gets kicked from it. It keeps
track of channel keys so it will be able to rejoin keyed channels in case of reconnects/kicks.
If a POE::Component::IRC::Plugin::NickServID plugin has been added to the IRC component, then AutoJoin will wait for a reply from NickServ
before joining channels on connect.
This plugin requires the IRC component to be POE::Component::IRC::State or a subclass thereof.
METHODS
"new"
Takes the following optional arguments:
'Channels', either an array reference of channel names, or a hash reference keyed on channel name, containing the password for each
channel. By default it uses the channels the component is already on if you are using POE::Component::IRC::State.
'RejoinOnKick', set this to 1 if you want the plugin to try to rejoin a channel (once) if you get kicked from it. Default is 0.
'Rejoin_delay', the time, in seconds, to wait before rejoining a channel after being kicked (if 'RejoinOnKick' is on). Default is 5.
'Retry_when_banned', if you can't join a channel due to a ban, set this to the number of seconds to wait between retries. Default is 0
(disabled).
'NickServ_delay', how long (in seconds) to wait for a reply from NickServ before joining channels. Default is 5.
Returns a plugin object suitable for feeding to POE::Component::IRC's "plugin_add" method.
AUTHOR
Hinrik Oern Sigur`sson, hinrik.sig@gmail.com
perl v5.14.2 2011-12-07 POE::Component::IRC::Plugin::AutoJoin(3pm)