Operating System - HP-UX
1753918 Members
7660 Online
108810 Solutions
New Discussion

help on learning to write scripts

 
SOLVED
Go to solution
NDO
Super Advisor

help on learning to write scripts

Hi All

 

Please can someone tell where can I find or RECOMMEND a very basic tutorial on scripting for starters. I know I just have to go to google, but there is really lots of them, ...

 

 

FR

4 REPLIES 4
rariasn
Honored Contributor

Re: help on learning to write scripts

Hi Nandhino:

 

Search for "korn shell" information.

 

http://www.well.ox.ac.uk/~johnb/comp/unix/ksh.html

 

rgs,

James R. Ferguson
Acclaimed Contributor
Solution

Re: help on learning to write scripts

Hi:

 

First, if you are working on HP-UX, use the HP-standard POSIX shell ('/usr/bin/sh' for normal users and for root, '/sbin/sh').  This is a Korn-like shell.  HP-UX offers the Korn88 ('ksh') shell as well as the Korn93 ('/usr/dt/bin/dtksh') which requires the installation of the CDE bundle on 11.31 from your core OS DVD.

 

Whatever you do, avoid the C-shell.

 

If you are a Linux users, the Bash shell is the de facto standard.  It has a great many enhacements over the POSIX or Korn shells named above.

 

As for a beginning guide, I always liked this:

 

http://web.archive.org/web/20081220020252/http://docs.hp.com/en/B2355-90046/index.html

 

Excelent script samples and tutorials can be found here:

 

http://www.shelldorado.com/

 

And when you want to understand why the C-shell is an abomination, read this classic:

 

http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/

 

Regards!

 

...JRF...

NDO
Super Advisor

Re: help on learning to write scripts

James!

 

Thanks for the links, but the first one shell user´s guide HP9000 does work only the first page, subsequente pages/links are not working.

 

FR

James R. Ferguson
Acclaimed Contributor

Re: help on learning to write scripts


@Nandinho wrote:

Thanks for the links, but the first one shell user´s guide HP9000 does work only the first page, subsequente pages/links are not working.


Hi (again):

 

Actually it does if you click the hyperlinks individually from the first page.  The following link will take you to a number of documents.  There is a PDF version of the Shell Users Guide there too:

 

http://web.archive.org/web/20081231081339/http://docs.hp.com/en/hpux10.x.html

 

Regards!

 

...JRF...