Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create a script that can goto a different dir also to run promp 1

Status
Not open for further replies.

ann124

Programmer
Sep 1, 2004
22
US
Hi,
I need to know how I'll be able to write a script that can goto a different dir where I don't have access to read,write and execute and also to run a commandline prompt in that dir with one file whose path has to be specified in that command.

Will I be able to do this?

Any ideas or solutions are welcome.
 
or the command/script needs the "set uid" flag to execute all commands inside the script as the user (root) the scriptfile belongs to.
See man chmod -> chmod 4755 script

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top