LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 02-07-2010, 08:07 AM   #1
suhai.sadaqat
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
Lightbulb 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 "rootther".

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
 
Old 02-07-2010, 08:19 AM   #2
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
You had already posted this thread in programming also.
continue from here
 
Old 02-07-2010, 08:35 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script for MV script call learnerlearner Linux - Newbie 3 06-03-2009 02:42 AM
ssh - using variables in call to start remote script from local script babag Linux - Networking 2 06-03-2008 04:50 PM
How can I script an autologin, automatically call kde(or simillar) and call an app aboaventura Slackware 8 02-03-2007 11:00 PM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
call another script and have the inital script exit mjtice Programming 1 09-11-2005 11:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration