Search found 3 matches

by keros01
Sat Jan 19, 2019 2:41 pm
Forum: Administrators
Topic: zmprov Scripting performance tips
Replies: 4
Views: 2315

Re: zmprov Scripting performance tips

I found a much better solution. If I use named pipes I can create a daemon like zmpov command mkfifo /tmp/zmprov_pipe touch /tmp/zmprov_out.txt tail -f /tmp/zmprov_pipe > >(zmprov > /tmp/zmprov_out.txt) & zmprov_pid=$1 echo "PID: $zmprov_pid" wait "$zmprov_pid" Now I can send...
by keros01
Sat Jan 12, 2019 1:45 pm
Forum: Administrators
Topic: zmprov Scripting performance tips
Replies: 4
Views: 2315

Re: zmprov Scripting performance tips

I really hoped that I don't need to split the output myself. But ok. I also need other data like all folders per account from zmmailbox so I created a function for splitting the data. This takes ~15 seconds for ~130 Accounts. Maybe there is a more elegant way for this. But it works so I'm happy. I f...
by keros01
Fri Jan 11, 2019 3:24 pm
Forum: Administrators
Topic: zmprov Scripting performance tips
Replies: 4
Views: 2315

zmprov Scripting performance tips

Hi I currently write a script for zimbra to get some informations from all accounts. The script is realy small but takes forever because I can't find a good way to interact with zmprov # get all accounts all_accounts=$(zmprov -l gaa) echo "$all_accounts" > all_accounts.txt for account in $...

Go to advanced search