Old 23rd May 2003, 10:09   #1
Dj-DarKing
Member
 
Join Date: Feb 2003
Location: Netherlands
Posts: 76
Send a message via ICQ to Dj-DarKing Send a message via AIM to Dj-DarKing Send a message via Yahoo to Dj-DarKing
help with 24/7

Ok another question i got a mirc running for my radio so wenn a dj types @offair the bot will do this:

/run C:\start.bat

But now i want that wenn a dj types @setdj that the bot will kill the winamp session.

I know that you have to do it with the pid number but how can i get the right pid number to kill, yeah via a variable but how can i do this anyone here who can help me to make a batch file for it ?

Thanks already !!!
Dj-DarKing is offline   Reply With Quote
Old 23rd May 2003, 10:18   #2
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
you want it to kick the source?
Jay is offline   Reply With Quote
Old 23rd May 2003, 14:16   #3
Dj-DarKing
Member
 
Join Date: Feb 2003
Location: Netherlands
Posts: 76
Send a message via ICQ to Dj-DarKing Send a message via AIM to Dj-DarKing Send a message via Yahoo to Dj-DarKing
yes
i want that but via a batch file in dos
Dj-DarKing is offline   Reply With Quote
Old 23rd May 2003, 14:33   #4
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
well batch files are kind of a silly way to do it, but you can by making a bat file (don't ask me why I am doing this for you)

like so:
kicksrc.bat
code:

"c:\program files\internet explorer\iexplore.exe" "http://localhost:8000/admin.cgi?pass=changeme&mode=kicksrc"



viola
execute kicksrc.bat
Jay is offline   Reply With Quote
Old 23rd May 2003, 14:36   #5
Dj-DarKing
Member
 
Join Date: Feb 2003
Location: Netherlands
Posts: 76
Send a message via ICQ to Dj-DarKing Send a message via AIM to Dj-DarKing Send a message via Yahoo to Dj-DarKing
ok thanks alot m8
Dj-DarKing is offline   Reply With Quote
Old 23rd May 2003, 14:48   #6
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
edited after I tried it telnet doesn't accept input in that way so use a browser.
Jay is offline   Reply With Quote
Old 23rd May 2003, 15:13   #7
Dj-DarKing
Member
 
Join Date: Feb 2003
Location: Netherlands
Posts: 76
Send a message via ICQ to Dj-DarKing Send a message via AIM to Dj-DarKing Send a message via Yahoo to Dj-DarKing
ok now i want in that script that he will enter in a output cause the bot is running on an other server so wenn he starts up that script there is a login screen with admin and the pass but know het must enter automaticly via an output command but wich one ?
Dj-DarKing is offline   Reply With Quote
Old 24th May 2003, 09:16   #8
invis
Senior Member
 
invis's Avatar
 
Join Date: May 2003
Location: California, USA
Posts: 105
Send a message via ICQ to invis Send a message via AIM to invis Send a message via Yahoo to invis
Batch files...

heh...

...

nuff said.
invis is offline   Reply With Quote
Old 24th May 2003, 21:22   #9
Dj-DarKing
Member
 
Join Date: Feb 2003
Location: Netherlands
Posts: 76
Send a message via ICQ to Dj-DarKing Send a message via AIM to Dj-DarKing Send a message via Yahoo to Dj-DarKing
Quote:
Originally posted by invis
Batch files...

heh...

...

nuff said.
how then ? how can i then kick the source and close winamp wenn a dj says @setdj that means that the bot must close the winamp running on the server so a dj can play live on the radio ?

The method with the batch file doesn't work cause i have to press ok manualy for the password how can i fix that ? so everything will go automaticly ?
Dj-DarKing is offline   Reply With Quote
Old 24th May 2003, 23:39   #10
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
trust me it works, what you are seeing is just a product of redirection.

if you want change the url to

http://admin:changeme@localhost:8000/admin.cgi?mode=kicksrc
Jay is offline   Reply With Quote
Old 25th May 2003, 00:09   #11
Dj-DarKing
Member
 
Join Date: Feb 2003
Location: Netherlands
Posts: 76
Send a message via ICQ to Dj-DarKing Send a message via AIM to Dj-DarKing Send a message via Yahoo to Dj-DarKing
ok thanks let me test it


:after test:

W00t thanks m8 it works fine now
Dj-DarKing is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump