01-19-2012
Really at this point (in reference to how ii works), I just need ways to manipulate log files.
There's an in and out file for each server / channel / person, separated by folders for each. So what I need to do is take the file
~/irc/servername/channelname/out
and monitor for the trigger word(s).
I then need to take that entire line of text and hopefully put it in a variable.
I then need to have the following sent to ~/irc/servername/in
/privmsg my_nickname [stored string of data from above]
Does that kind of clear things up a little, as far as how ii works and what I'm attempting to do?
My ultimate goal is to be able to start the file/bash script and be able to close out of the ssh session to the pogoplug while keeping this running so I can leave it idling as a bot in the room.
5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to write two shell scripts for an rsync backup solution. The first script will copy all backed up files into a folder named after the original folder, plus a date stamp (so e.g. if the original folder name is 'foo' and is backed up on the 10th of September, then the backup folder will be... (0 Replies)
Discussion started by: LambdaCalculus
0 Replies
2. Shell Programming and Scripting
PFA file "color.txt".
Note : There is no newline character in the file. I have manually inserted the newline char to make it easy to understand.
I am expecting out in the form as specified in second file "out.txt"
I need a perl script to perform the task.
Thanks in advance. (2 Replies)
Discussion started by: deo_kaustubh
2 Replies
3. Shell Programming and Scripting
Howdy folks,
I'm trying to craft a log file summarisation tool for an application that creates a lot of duplicate entries with only a different suffix to indicate point of execution. I thought I'd gotten close but I'm clearly missing something.
Here's a genericized version:
A text_file... (3 Replies)
Discussion started by: mthespian
3 Replies
4. Shell Programming and Scripting
Hello everyone! I am brand new at this forum thing and wanted to thank all of you for your time and help in advance for helping me troubleshoot my issue.
I am fairly new to shell scripting and scoured the entire internet to find a solution for my issue to no avail and hope you're able to help.
... (2 Replies)
Discussion started by: sedrocks
2 Replies
5. Shell Programming and Scripting
Hello,
I am in a Unix class and have been out of town. I have been tasked to generate a couple of scripts and ahve never done it before. I have a virtual machine running Ubuntu. The task is below
Prompt the system administrator for all valid input parameters
Generate a menu to ask which... (1 Reply)
Discussion started by: jkeeton81
1 Replies
LEARN ABOUT DEBIAN
jsb-irc
JSONBOT(1) jsb manual JSONBOT(1)
NAME
jsb-irc - The JSONBOT IRC program
SYNOPSIS
jsb-irc is the IRC program build on the JSONBOT framework
DESCRIPTION
jsb-irc can connect to IRC network and join a channel, react on /msg and operate on /DCC CHAT connections. It supports SSL and ipv6.
USAGE
Usage: jsb-irc [options]
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-r PATH resume the bot from the folder specified
-d DATADIR, --datadir=DATADIR
datadir of the bot
-o OWNER, --owner=OWNER
owner of the bot
-s SERVER, --server=SERVER
server to connect to (irc)
-c CHANNEL, --channel=CHANNEL
channel to join
-l LOGLEVEL, --loglevel=LOGLEVEL
loglevel of the bot
-p PASSWORD, --password=PASSWORD
set password used to connect to the server
--name=NAME bot's name
--port=PORT set port of server to connect to
--save save to config file
-n NICK, --nick=NICK nick of the bot
--ssl use ssl
-y, --nossl don't use ssl
-6, --ipv6 enable ipv6 bot
DOCUMENTATION
See http://jsonbot.org for more documentation or see http://jsonbot.googlecode.com
SEE ALSO
jsb(1), jsb-backup(1), jsb-init(1), jsb-xmpp(1), jsb-fleet(1), jsb-tornado(1), jsb-stop(1), jsb-udp(1), jsonbot(1)
AUTHOR
This manual page was written by Bart Thate <bthate@gmail.com>, for the Debian GNU/Linux system (but may be used by others).
Debian GNU/Linux 22 Nov 2011 JSONBOT(1)