hello .everyone. i have a bit of a problem with a small script i am executing. there is a script which i have which is supposed to be executed as user a. however i want to include it in my startup items . so tecniclaly it has to be executable by the root user. whenever i try to execute the script as the root user i get a command not found . i added the full path of the file to the command but it still couldent be executed. this is the comand and this is the error i get.
CODE
su - opensrf -c " /openils/bin/osrf_ctl.sh -c /openils/conf/opensrf
_core.xml -a start_all"
when i execute this command as a root user it gives me erors telling me that it cant find a particualr command.
i dont know whether it has to do with the second -c which adds extra options which the origial shell or whatever shell its in cannot see .
any comments and tips would be gratly appreciated