- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- learn scripting
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
тАО07-29-2006 01:02 AM
тАО07-29-2006 01:02 AM
I have to start scripting can you all experts guide me how to start and which books or documents will give me good guidance and help me to understand the concepts of scripting.
thanks to all in advance
Solved! Go to Solution.
- Tags:
- scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2006 01:20 AM
тАО07-29-2006 01:20 AM
SolutionThere are many, many good books. However, a Google search for "shell scripting" will return a multitude of free tutorials.
A quick-read (free) book can be found here on HP's web:
http://www.docs.hp.com/en/B2355-90046/B2355-90046.pdf
This guide will give you a good, quick overview. Concentrate on the Posix/Korn shell since the Posix one is the standard HP shell. Too, out of this line (Posix/Korn) the 'bash' shell has evolved --- a standard in Linux.
An excellent site for scripts can be found here:
http://www.shelldorado.com/
This site has some good tutorials, guides to sound practices, and a fair number of scripts that allow you to see how someone else attacked a problem.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2006 02:36 AM
тАО07-31-2006 02:36 AM
Re: learn scripting
In my view Better idea is to learn from others scripts.
find / -name *.sh
this will give you lot of scripts. view any thing u like. refer books or google after seeing the scripts.
All the best!!!
Keep learning!!!
Sekar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2006 02:48 AM
тАО07-31-2006 02:48 AM
Re: learn scripting
There are two things wrong with:
# find / -name *.sh
The first is that should the directory contain more than one file ending in '.sh', then the 'find' command will *fail* with:
find: missing conjunction
To see why, do:
# echo *.sh
...and then consider that the entire evaluation is passed as an argument to 'find'.
The proper form would be:
find / -name "*.sh"
...which passes the argument intact to 'find' for its evaluation.
The second thing wrong with:
# find / -name *.sh
is the assumption that shell scripts must end with the '.sh' extension. They do not, and this is only a matter of choice. You will miss many, many good scripts making this assumption.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2006 02:56 AM
тАО07-31-2006 02:56 AM
Re: learn scripting
IMO reading others scripts is good, but first you have to understand what your reading thus have some basic shell scripting knowledge.
Tutorial sites, and books are great for getting this basic and even sometimes advanced knowledge.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2006 03:03 AM
тАО07-31-2006 03:03 AM
Re: learn scripting
Kochan and Wood - Shell Programming is a must
http://www.amazon.com/gp/product/0672324903/sr=8-2/qid=1154358108/ref=pd_bbs_2/104-8946161-4270352?ie=UTF8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2006 03:06 AM
тАО07-31-2006 03:06 AM
Re: learn scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2006 03:09 AM
тАО07-31-2006 03:09 AM
Re: learn scripting
I'd suggest looking at online tutorials. They'll walk you through simple examples and get your feet wet. The ksh man page is also a very good reference, and being familiar with the different variables and builtins is helpful once you get going.
Once you're done with the basics, then I'd go hacking into scripts other admins have written. Documentation or no, if you have the fundamentals down (and google available), then you should be able to reverse-engineer pretty much any script out there.
If you feel the need for dead tree books:
Learning the Korn Shell
Classic Shell Scripting
both published by O'Reilly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2006 03:14 AM
тАО07-31-2006 03:14 AM
Re: learn scripting
There are lots of good questions here on how to script this and that. Just spend 10 minutes a day reading the questions.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2006 03:43 AM
тАО07-31-2006 03:43 AM
Re: learn scripting
thanks again for making me (and lot of others) clear...
/* is the assumption that shell scripts must end with the '.sh' extension. They do not, and this is only a matter of choice. You will miss many, many good scripts making this assumption. */
when he learn UNIX OS Structure well, they will come to know those scripts.
for the first time, they can try that one.. that is why i used that "find".