Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Automation using bots in Linux/UNIX ? Post 303034829 by tommy812 on Tuesday 7th of May 2019 04:54:31 PM
Old 05-07-2019
Automation using bots in Linux/UNIX ?

Hi folks,
has any one attempted using bots for performing tasks in unix?please share if you faced any challenges

thanks
 

7 More Discussions You Might Find Interesting

1. AIX

Automation from Windows to Linux - Telnet and su using perl

Here is my requirement to automate the deployment procedure for my project. Telnet to AIX box (say SERVER1) from windows machine (with USER1) Select the server to login say "SERVER2" su as different user say "USER2"(Owner of the deployed files) Execute the script (Script has so many... (1 Reply)
Discussion started by: nurainos
1 Replies

2. Shell Programming and Scripting

Simple Unix Automation

Hi, i'm a newbie with unix and shell scripting. I'm just trying to do a script to simply automate a unix task. This are the steps on what i want to just run on a simple shell script 1. go to a specific path (cd /folder1/folder2/) 2. edit and input a number on a file (file_id) then save exit... (6 Replies)
Discussion started by: soultransit
6 Replies

3. Shell Programming and Scripting

UNIX automation

Hello People, I have an outstanding issue with me I have 5 files at location /usr/abc called 1.DE 1.TXT 2.DE 2.TXT 3.DE 3.TXT 4.DE 4.TXT 5.Fe.ok My work involves few manual process like transfer 1.DE 1.TXT and 5.Fe.ok to /usr/dob location and run one script(for example -... (42 Replies)
Discussion started by: j_panky
42 Replies

4. Shell Programming and Scripting

Linux VMguest Automation

i need a help to conigure the ipaddress for linux vmguest we have perl script to deploy the vmguest from our master server and that script will configure the vmguest and boot the machine automatically. i have query once guest booted it should read a file from (.vmx or some file from datestore... (0 Replies)
Discussion started by: venikathir
0 Replies

5. Homework & Coursework Questions

Mail Automation in UNIX

Hi Sir, I need unix code which will read data present in .xls file and should send an automated mails .when i place the .XLS file in a specific folder and run ***.sh from unix box Attached Excel file contains Subject , To , CC , Body (Paragraph 1) , Body (Paragraph 2) , Signature When i... (2 Replies)
Discussion started by: chaitanyaS
2 Replies

6. Shell Programming and Scripting

Unix fdisk -l Automation

Hello Folks - Need help really ASAP. Iam trying to run this Shell command to get all the lists of partitions and disks from across all the servers. #!/bin/ksh _servers="" _out="/tmp/output.$$" _ssh=/usr/bin/ssh >$_out for s in $_servers do $_ssh $s fdisk -l >> $_out done ... (8 Replies)
Discussion started by: bkilaru
8 Replies

7. Post Here to Contact Site Administrators and Moderators

UNIX automation

I am using netteza server and i have a list of table names. I need to fetch all the data from these tables and need to create seperate zip files and store in a folder in the server. How can we automate this process. (1 Reply)
Discussion started by: nikhilthms97
1 Replies
POE::Component::IRC::Qnet(3pm)				User Contributed Perl Documentation			    POE::Component::IRC::Qnet(3pm)

NAME
POE::Component::IRC::Qnet - A fully event-driven IRC client module for Quakenet SYNOPSIS
use strict; use warnings; use POE qw(Component::IRC::Qnet); my $nickname = 'Flibble' . $$; my $ircname = 'Flibble the Sailor Bot'; my $port = 6667; my $qauth = 'FlibbleBOT'; my $qpass = 'fubar'; my @channels = ( '#Blah', '#Foo', '#Bar' ); # We create a new PoCo-IRC object and component. my $irc = POE::Component::IRC::Qnet->spawn( nick => $nickname, port => $port, ircname => $ircname, ) or die "Oh noooo! $!"; POE::Session->create( package_states => [ main => [ qw(_default _start irc_001 irc_public) ], ], heap => { irc => $irc }, ); $poe_kernel->run(); sub _start { my ($kernel, $heap) = @_[KERNEL, HEAP]; # We get the session ID of the component from the object # and register and connect to the specified server. my $irc_session = $heap->{irc}->session_id(); $kernel->post( $irc_session => register => 'all' ); $kernel->post( $irc_session => connect => { } ); return; } sub irc_001 { my ($kernel, $sender) = @_[KERNEL, SENDER]; # Get the component's object at any time by accessing the heap of # the SENDER my $poco_object = $sender->get_heap(); print "Connected to ", $poco_object->server_name(), " "; # Lets authenticate with Quakenet's Q bot $kernel->post( $sender => qbot_auth => $qauth => $qpass ); return; } sub irc_public { my ($kernel, $sender, $who, $where, $what) = @_[KERNEL, SENDER, ARG0 .. ARG2]; my $nick = ( split /!/, $who )[0]; my $channel = $where->[0]; if ( my ($rot13) = $what =~ /^rot13 (.+)/ ) { $rot13 =~ tr[a-zA-Z][n-za-mN-ZA-M]; $kernel->post( $sender => privmsg => $channel => "$nick: $rot13" ); } return; } # We registered for all events, this will produce some debug info. sub _default { my ($event, $args) = @_[ARG0 .. $#_]; my @output = ( "$event: " ); for my $arg ( @$args ) { if (ref $arg eq 'ARRAY') { push( @output, '[' . join(', ', @$arg ) . ']' ); } else { push ( @output, "'$arg'" ); } } print join ' ', @output, " "; return 0; } DESCRIPTION
POE::Component::IRC::Qnet is an extension to POE::Component::IRC specifically for use on Quakenet <http://www.quakenet.org/>. See the documentation for POE::Component::IRC for general usage. This document covers the extensions. The module provides a number of additional commands for communicating with the Quakenet service bot Q. METHODS
"service_bots" The component will query Q its default name on Quakenet. If you wish to override these settings, use this method to configure them. $irc->service_bots(QBOT => 'W@blah.network.net'); In most cases you shouldn't need to mess with these >;o) INPUT
The Quakenet service bots accept input as PRIVMSG. This module provides a wrapper around the POE::Component::IRC "privmsg" command. "qbot_*" Send commands to the Q bot. Pass additional command parameters as arguments to the event. $kernel->post ('my client' => qbot_auth => $q_user => $q_pass); OUTPUT EVENTS
All output from the Quakenet service bots is sent as NOTICEs. Use "irc_notice" to trap these. "irc_whois" Has all the same hash keys in "ARG1" as POE::Component::IRC, with the addition of 'account', which contains the name of their Q auth account, if they have authed, or a false value if they haven't. BUGS
A few have turned up in the past and they are sure to again. Please use <http://rt.cpan.org/> to report any. Alternatively, email the current maintainer. AUTHOR
Chris 'BinGOs' Williams <chris@bingosnet.co.uk> Based on the original POE::Component::IRC by: Dennis Taylor, <dennis@funkplanet.com> SEE ALSO
POE::Component::IRC <http://www.quakenet.org/> perl v5.14.2 2011-12-07 POE::Component::IRC::Qnet(3pm)
All times are GMT -4. The time now is 03:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy