command substitution for one liner

Hi Guys

i have a script that runs every morning at 6 to disconnect to ppp active users for radius to do backed radius scripting

currently my radius takes to heavy load when the disconnects happen to quick

my one liner is

/ppp active remove [ /ppp active find]

i want to add a little sleep for 5s, in bash and perl its very simple, but i have no idea how to in MT

:delay-time 5s [/ppp active remove [ /ppp active find] ]

something in this sense

any pointers would be apreciated

Thanks

S

So you want 5s delay before script starts to remove active users
or you want 5s delay after each removed active user?

after each removed users

i reckon ill have to use a for loop?

/ppp active remove [:delay 5s /ppp active find] ]

Thanks

S

:foreach i in=[ppp active find] do={
/ppp active remove $i;
:delay 5s;
}

your a champion

works perfect

S