Hi everyone,
This answer might be painfully obvious and I just don't know enough about linux to appropriately search for it but I can't figure out how to run a zm command (zmprov, etc) via script without SU'ing and inputting a password first.
To keep things simple, let's say that I wanted to run this script from a cron job:
I know there's something about making sure the environment is correct and/or setting something in the sudoers file but nothing I do makes a difference.Code:#!/bin/bash zmcontrol status > /var/tmp/status.blah
Any help would be appreciated -thanks


LinkBack URL
About LinkBacks

