Community discussions

MikroTik App
 
wissammohamed
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 85
Joined: Fri Jan 05, 2007 3:29 pm

script to remove users

Sat Jun 28, 2008 4:53 pm

Hi all,

i have these scripts

ppp secret disable farqad

ppp secret enable farqad

the script is to disable and enable user named farqad in specific time

the problem is how can i remove him from the active connection when the user disabled ???

please help me with that

thank you all
 
User avatar
Giepie
Member
Member
Posts: 433
Joined: Mon Sep 13, 2004 12:33 pm
Location: Western Cape, South Africa
Contact:

Re: script to remove users

Sun Jul 06, 2008 10:54 am

You have to "kick" the active user.

Try this command:

/ppp active remove [find name="farqad"]

This will only work if the user is connected to the site where the script is run from.

You could use the :if command to first see if the user is actually online, but the above script should work fine.

G

Who is online

Users browsing this forum: No registered users and 16 guests