Call other script having different Permissions
HI,
I am writing a shell script lets say run.sh and i want to call another script lets say test.sh having permissions " root:sys" whereas the permissions for run.sh are "root:other". Problem is that i cannot change the permissions of either of them. run.sh is performing some other important functions as well and test.sh is a system script and i am not supposed to change that. If i do not change the permissions, run.sh simply skips the part where it is suppose to call test.sh Can anyone tell me how do i call test.sh in run.sh without changing permissions of any of them. Code: run.sh #!/bin/sh dub=`cd /opt/FJSVmadm/sbin hrdconf -l` check5=`grep '*' $dub` if [ "$check5" ] then echo "Hardconf Status....................OK\n" else echo "Hardconf Status....................NOK\n" fi Thanks in advance |
You had already posted this thread in programming also.
continue from here |
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
|
All times are GMT -5. The time now is 06:14 PM. |