Hi,
I am currently writing a script for automatically cleaning out expired user-manager accounts. Using version 3.x by the way.
So far so good, but there’s one thing that’s bugging and I hope someone here can help. The question is generic scripting related, not user-manager specifically.
I’m doing a lot of looping to cycle through accounts, therefore I’m using quite a number of get .
Unfortunately when trying it on terminal, I have to dump a “print without-paging” before the account list gets any ID attached to it. Unless I print before, get simply refuses to work. Now this would be fine with a small list, but having to dump 4000+ users is a bit lengthy, annoying, and in my eyes, silly.
Is there a cleaner way to do it? Maybe I have the whole ID theory wrong. Someone with more insight would be of great help.
As I said I’m trying it on terminal .. don’t know if the print thing is needed when running the script automatically.
Input appreciated, as I’m always striving for clean, simple code.