End Process in Linux?

darkconz

Member
Aug 4, 2004
69
0
0
Hi there,

Recently I got my linux box up and running. I am still in the progress in learning the basics of Linux but I was eager and set myself up eggdrop for my IRC channel. However, the bot did not respond to my DCC CHAT request and the IRC client I use on my linux is not the same as mIRC I use on Windows.

I want to restart my bot but I do not know how to view what processes are running and do not know how to end a specific one. If anyone could help, please give me some pointers. Thank you very much in advance.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
I think I covered the basics in my docs thread. Anyhow:

ps -auxww This should show you all processes running on the system.
ps -auxww | grep eggdrop This should filter it down to all processes that contain the word eggdrop. You might see ./eggdrop. It it complains, try ps uaxww | grep eggdrop instead.
The first column is the user the program is running as. This should be your username. The second column is the Process ID (PID) of the process. The column on the far right is the command used. These are the most important columns for most day to day uses, IMO.

So, what you will want to do is:
kill PID This should kill the bot. You just restart it. *replace PID with the proper process id #. :)

A shortcut:
There will probably be an eggdrop.pid or nick.pid (nick being the nickname you gave the bot) in your eggdrop directory. You should be able to do something along the lines of:
kill `cat eggdrop.pid` to kill it.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
I had a reasonably long post, but I hit esc one too many times (because I hit ^B instead of ^V, and whoever made esc erase the post you're in the middle of watch your back!). I guess it wasn't too long if you compare it to drag's posts, but it was quite informative, IMO. But this is what I remember. ;)

Some quick notes on bots*:
  1. Make sure you read through the configuration file. It is important. Among other nifty settings, you should remove or comment out the die statements. They will cause the bot not to start.
  2. Some servers do not allow bots (please use a botfriendly server), and the IRCops look for them. There are several ways to identify a bot. Make sure you look at and edit the configuration file, if you are not on a botfriendly server (please use a botfriendly server).
  3. You should not be able to DCC a bot unless you have introduced yourself. Usually this is done by msging the bot with the word hello (/msg botnick hello). Not surprisingly, IRCops also know about this. I first found out about it when an IRCop msged me with hello out of the blue. You can change this behavior (and it is highly recommended) in the configuration file:
    # Many IRCops find bots by seeing if they reply to 'hello' in a msg.
    # You can change this to another word by un-commenting the following
    # two lines and changing "myword" to the word wish to use instead of
    # 'hello'. It must be a single word.
    #unbind msg - hello *msg:hello
    #bind msg - myword *msg:hello

    I change myword to something odd, like tiger.
  4. Before you have introduced yourself to the bot (as its owner), you will have to start it up with a certain flag. I believe it's -m, so the command would be: ./eggdrop -m eggdrop.conf . You will not need this flag after you have introduced yourself, so do not use it again.
  5. Running a bot can be hazardous to your health. If your channel is ever coveted by another person, large amounts of traffic may make its way to your system. Botnets mitigate this a bit, but are not foolproof. I'm guessing that modern broadband connections (cable atleast) could solve the 3mbps attacks, maybe even the 6mbps attacks, but the multi-gigabit attacks are a bitch. Also, if you only have 1 bot, you may have to spend time babysitting it. Especially if you're a newbie. I've spent many frustrating hours with the damned things.


*This assumes you are using an eggdrop, and not an energymech or one of the other variants out there.
 

darkconz

Member
Aug 4, 2004
69
0
0
Yes indeed I am using eggdrop. Your information is very precious to me. I must thank you again. I've heard of your doc several times but could not exactly find the location of it. Do you mind to point me to that please? Thank you very much.

Also I IDed to my bot saying I am the owner but the second time I start the bot, it wont accept my DCC CHAT request. I am going to reinstall and look for a solution. Thanks once more.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Here is a link to it. This thread reminded me of a thing or two I need to check on. :)

After you introduced yourself, did you set a password? It's been a while, but a quick look at the log might give you a hint as to what is wrong. ;)