This is what I have in my bash script:
<code>
#!/bin/sh
# location of the shell script that initializes the zenoss environment
ZENOSS_ENV=~zenoss/.bashrc


# print the error message passed and exit with a return code of 1 (error)
fail() {
    echo $*
    exit 1
}


#
# main script starts here
#

# set up the environment
test -f ${ZENOSS_ENV} || fail "Source environment not found"
. ${ZENOSS_ENV}
</code>




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=24435#24435

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to