Re: help on learning to write scripts (366 Views)
Reply
Super Advisor
NDO
Posts: 531
Registered: ‎12-10-2003
Message 1 of 5 (378 Views)
Accepted Solution

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

Please use plain text.
Honored Contributor
rariasn
Posts: 1,135
Registered: ‎08-09-1999
Message 2 of 5 (375 Views)

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,

Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 3 of 5 (372 Views)

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...

Please use plain text.
Super Advisor
NDO
Posts: 531
Registered: ‎12-10-2003
Message 4 of 5 (368 Views)

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

Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 5 of 5 (366 Views)

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...

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation