M
Mike
Hello, I am learning python and i have the next problem and i not understand how fix.
The script is very simple, shows in the terminal the command but, the row is divided in two:
Example:
/opt/zimbra/bin/zmprov ga (e-mail address removed)
|egrep "(zimbraPrefMailForwardingAddress:|zimbraPrefMailForwardingAddress
"
/opt/zimbra/bin/zmprov ga (e-mail address removed)
|egrep "(zimbraPrefMailForwardingAddress:|zimbraPrefMailForwardingAddress
"
And the correct is:
/opt/zimbra/bin/zmprov ga (e-mail address removed) |egrep "(zimbraPrefMailForwardingAddress:|zimbraPrefMailForwardingAddress
"
The script is:
#!/usr/bin/python
import os
for user in open ("email"):
print '/opt/zimbra/bin/zmprov ga ' + user + '|egrep "(zimbraPrefMailForwardingAddress:|zimbraPrefMailForwardingAddress
" '
Thanks
The script is very simple, shows in the terminal the command but, the row is divided in two:
Example:
/opt/zimbra/bin/zmprov ga (e-mail address removed)
|egrep "(zimbraPrefMailForwardingAddress:|zimbraPrefMailForwardingAddress
/opt/zimbra/bin/zmprov ga (e-mail address removed)
|egrep "(zimbraPrefMailForwardingAddress:|zimbraPrefMailForwardingAddress
And the correct is:
/opt/zimbra/bin/zmprov ga (e-mail address removed) |egrep "(zimbraPrefMailForwardingAddress:|zimbraPrefMailForwardingAddress
The script is:
#!/usr/bin/python
import os
for user in open ("email"):
print '/opt/zimbra/bin/zmprov ga ' + user + '|egrep "(zimbraPrefMailForwardingAddress:|zimbraPrefMailForwardingAddress
Thanks