Page 1 of 1

What is the problem the following script

Posted: Mon May 07, 2012 8:30 pm
by reza.mnp
What is the problem the following script?
 :for i from=1 to=1500  do={ /tool user-manager log remove number=$i; } 

run but no delete log file

usermanager v4.17

Re: What is the problem the following script

Posted: Tue May 08, 2012 12:05 am
by skot
Do you want to delete only logs 1-1500? Or all of them?

If you want to delete all the logs, do:
/tool user-manager log remove [find];

Re: What is the problem the following script

Posted: Fri May 11, 2012 11:43 am
by janisk
you can check the output of [find] and see what numbers are expected there.

your initial script would work if you did print before remove. That would add temporary numbering that is assigned when print is done.

Re: What is the problem the following script

Posted: Fri May 11, 2012 10:15 pm
by skot
your initial script would work if you did print before remove. That would add temporary numbering that is assigned when print is done.
After doing the print command, how long are the numbers associated with the items? Is there a timeout of some kind, or how does that work?