- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sh program
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
тАО09-24-2004 07:19 PM
тАО09-24-2004 07:19 PM
sh program
- Tags:
- shells
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2004 07:25 PM
тАО09-24-2004 07:25 PM
Re: sh program
where is your shell program question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2004 07:36 PM
тАО09-24-2004 07:36 PM
Re: sh program
Welcome to the forums.
Your question is either incomplete or not clear..
Could you please clear it.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2004 07:46 PM
тАО09-24-2004 07:46 PM
Re: sh program
Didn't get your question exactly.
Well, all unix flavors comes with some default shells with them, like HPunix has POSIX as default shell, SCOunix comes with Bourne Shell as default shell, and so on..
What you want i guess is the program i.e. sh program as your subject is saying which is nothing but the script.
# sh program
Now this program is the script written as per the syntax of that particular shell e.g. script written for POSIX shell could be different than written for bourne or Korn shell.
If you want to know what shell your UNIX has and like to learn more about it then do this:
1. # env | grep SHELL
It will display "/usr/bin/sh" if it is POSIX
2. # man sh-posix
Go thr' the man pages thoroughly and you will be able to write script for Posix shell.
3. # chmod +x program
Now assuming you have written a script with name "program", you have to change it's mode to executable as shown above.
4. # sh program
Now this is how you can execute your program i.e. script.
Hope i understood you and you understood me. :))
All the best.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2004 10:06 PM
тАО09-24-2004 10:06 PM
Re: sh program
UNIX are allocating shell to execute commands to interact kernel for the execution of that command.
shell programming are used to combine sequence of shell commands / conditionals / etc in a file and execute them there.
Different kind of shells are available as,
sh(rsh),sh-posix,ksh(rksh),csh,tcsh,bash ( advanced one )
See man page for sh, sh-posix there as,
man sh
man sh-posix