- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to make a bourne shell script executable?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2002 07:31 AM
тАО10-15-2002 07:31 AM
Re: How to make a bourne shell script executable?
# man 3 mktemp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-16-2002 07:12 AM
тАО10-16-2002 07:12 AM
Re: How to make a bourne shell script executable?
You have to give execute permision to your script file:
chmod 700 < file >
I hope this help you.
Juanma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2002 12:43 AM
тАО10-18-2002 12:43 AM
Re: How to make a bourne shell script executable?
Dear Rory R Hammond
--------------------
I had download the file shc-2.4a-sd-10.20.depot. I am able to unzip it but how am i suppose to install/run the shc? If i am not a unix root/administrator and just a normal user, can i still install it into my account. Thank you.
Dear Juan Manuel Lo
--------------------
When i chmod 700 < test.sh > there is an error:
sh: Syntax Error: `newline or ;' is not expected. I not sure whether HP-UX 10.20 can do that.
Dear Gerard Leclercq
---------------------
Thanks for your C code. But when i want to make test.sh (a sample script) executable, anything to do with temporary files? Is it you want me to name test.sh to .test? Anyway can you explain more details about your code. Maybe comments. I am not that good in C. :D
Dear procura
------------
I had read through the man 3 mktemp but it does not teach me how to use it. Is it implemented in C rather than bourne shell script? Any sample implmentation on bourne/Posix script.
Dear Yogeeraj
-------------
Cool...i just know how to make a c program executable rather than keep using the old way (a.out). Thanks a lot. But i want to make a bourne shell script executable rather than C or perl.
Anyway thanks for your replies. It really help me learn more about UNIX. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 08:38 AM
тАО11-15-2002 08:38 AM
Re: How to make a bourne shell script executable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 10:46 AM
тАО11-15-2002 10:46 AM
Re: How to make a bourne shell script executable?
1)
You can use "sudo" to run it.
sudo abc.sh
The downside is the shell script will run as "root". But then no one can look at the source.
--- or ---
2) You can use group permissions on a wrapper script. Not entirely recommended, but can be made secure.
script1.sh has group ownership of "secret" and the set gid bit is set (chmod 2755 script1).
abc.sh has group ownership of "secret" and the group permissions are read (chmod 755 abc.sh).
abc.sh is visible only to people who are members of the "secret" group. script1.sh is visible to everyone. When script1.sh is ran, the script will have access to run abc.sh.
my 2 cents
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-15-2002 10:58 AM
тАО11-15-2002 10:58 AM
Re: How to make a bourne shell script executable?
In part 2), it should be
chmod 750 abc.sh
-- Rod Hills
- « Previous
- Next »