I need to using "zmprov sa ..." in a script so that the searched string could be variable. I tried below command, but is didn't work!
zmprov -l sa "(zimbraLastLogonTimestamp>=$year$month00000000Z)"
year and month are two variables. They are 2018 and 07
- Zimbra Collaboration 8.6 Patch 9 now available (includes fix for CVE-2017-8802). Read the announcement.
- Zimbra Collaboration 8.8.7 + Zimbra Connector for Outlook 8.8.7 are available.. Read the announcement.
- Are you a Zimbra Developer? You can find some interesting stuff in our Official GitHub: https://github.com/Zimbra and check the Community Projects too: https://github.com/Zimbra-Community/
How to use variable tosearch by zmprov sa
- ccelis5215
- Outstanding Member
- Posts: 585
- Joined: Sat Sep 13, 2014 2:04 am
- Location: Caracas - Venezuela
- ZCS/ZD Version: 8.0.9.GA.6191.UBUNTU12.64 FOSS
Re: How to use variable tosearch by zmprov sa
masoumeh wrote:I need to using "zmprov sa ..." in a script so that the searched string could be variable. I tried below command, but is didn't work!
zmprov -l sa "(zimbraLastLogonTimestamp>=$year$month00000000Z)"
year and month are two variables. They are 2018 and 07
Hi,
Try
Code: Select all
zmprov -l sa "zimbraLastLogonTimestamp>=${year}${month}01000000.000Z"
ccelis
Re: How to use variable tosearch by zmprov sa
ccelis5215 wrote:masoumeh wrote:I need to using "zmprov sa ..." in a script so that the searched string could be variable. I tried below command, but is didn't work!
zmprov -l sa "(zimbraLastLogonTimestamp>=$year$month00000000Z)"
year and month are two variables. They are 2018 and 07
Hi,
TryCode: Select all
zmprov -l sa "zimbraLastLogonTimestamp>=${year}${month}01000000.000Z"
ccelis
Thanks
Who is online
Users browsing this forum: Google [Bot] and 16 guests