|
|
|
|
#1 |
|
Member
|
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 !!! |
|
|
|
|
|
#2 |
|
Moderator Alumni
Join Date: May 2000
Location: Next Door
Posts: 8,942
|
you want it to kick the source?
-Jay | Radio Toolbox.com |
|
|
|
|
|
#3 |
|
Member
|
yes
i want that but via a batch file in dos |
|
|
|
|
|
#4 |
|
Moderator Alumni
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: viola execute kicksrc.bat -Jay | Radio Toolbox.com |
|
|
|
|
|
#5 |
|
Member
|
ok thanks alot m8
|
|
|
|
|
|
#6 |
|
Moderator Alumni
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 | Radio Toolbox.com |
|
|
|
|
|
#7 |
|
Member
|
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 ?
|
|
|
|
|
|
#8 |
|
Senior Member
|
Batch files...
heh... ... nuff said. |
|
|
|
|
|
#9 | |
|
Member
|
Quote:
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 ? |
|
|
|
|
|
|
#10 |
|
Moderator Alumni
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 | Radio Toolbox.com |
|
|
|
|
|
#11 |
|
Member
|
ok thanks let me test it
![]() :after test: W00t thanks m8 it works fine now
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|