Hi ,
I am writing a perl script which is to be run through cron..
i have to connect to zimbra ldap directory, for that i am using zmlocalconfig command to get ldap url, username and password to connect to ldap server.

problem:
when i login as root and su to zimbra user. and run the script though cron, it gives an error "sh: zmlocalconfig command not found", while from shell it works perfectly fine,

can any one help me in this issue...

Regards
Piyush.