1748128 Members
3610 Online
108758 Solutions
New Discussion юеВ

Re: Easy question!

 
SOLVED
Go to solution
Jaime Bolanos Rojas.
Honored Contributor

Easy question!

If I had to learn a programming language to work on HP-UX as a sys admin which one you would recommend.
Please take into consideration that I got not programming background whatsover.
Please note that my job is system administration, nothing related to programming, and for the time being I don┬┤t deal with scripts.
Please take into account that I have to learn the thing on my own.
Please take into account that it has got to be something useful to a sys admin role because if not I will forget and what a waiste of time :-)

Regards,

Jaime
Work hard when the need comes out.
6 REPLIES 6
Tingli
Esteemed Contributor

Re: Easy question!

ksh, perl.
Patrick Wallek
Honored Contributor

Re: Easy question!

On HP-UX, the POSIX shell (/usr/bin/sh) is the default shell for everyone. Learn this shell, not just for writing scripts, but for every day administration. As a part of this you should get familiar with awk and sed and regular expressions.

PERL is also VERY VERY useful. It would also be a good idea.

There are plenty of books available for all of the above topics.

There are numerous sites on the Internet that can be a big help to you.
James R. Ferguson
Acclaimed Contributor
Solution

Re: Easy question!

Hi Jaime:

Get grounded in the shell first. HP-UX uses the so-called Posix shell (/sbin/sh and /usr/bin/sh) by default which is a Korn-like shell.

Modern Korn shells and the Bash shell (the defacto Linux standard) are sometimes used, but you _must_ be familar and comfortable using the Posix shell, since '/sbin/sh' can be the only default 'root' shell unless you want an un-startable system.

Whatever you do, do _not_ use the brain-dead C shell ('/usr/bin/csh'). It has so many deficiences and idiosyncracies as to be virtually useless.

When you are comfortable with shell scripting, add 'awk' and 'sed'. You will encounter their use in many scripts indigenous to HP-UX. Then, add Perl and enjoy real power.

There are numerous good books on the Unix Shell. A very good site to begin your learning from is Heiner's "shelldorado":

http://www.shelldorado.com/

A quick overview of the shells to get you started is here:

http://docs.hp.com/hpux/onlinedocs/B2355-90046/B2355-90046.html

Regards!

...JRF...
Jean-Luc Oudart
Honored Contributor

Re: Easy question!

Jaime

Probably the way I started many years ago !

shell scripting : there are many different shells :
http://docs.hp.com/en/B2355-90046/ch01s01.html
http://docs.hp.com/en/B2355-90046/ch15s03.html

then follow up with sed and awk
awk :
http://www.gnu.org/manual/gawk/html_node/index.html

you will need a good understaning of regular expression :
http://en.wikipedia.org/wiki/Regular_expression

Check with many examples you may have already on your system (eg insal scripts)

Regards
Jean-Luc
fiat lux
Hemanth Gurunath Basrur
Honored Contributor

Re: Easy question!

Hi Jaime,

You can find the documentation for programming languages and development tools for HP-UX at http://docs.hp.com/en/dev.html.

Also, see the following links:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1247030437338+28353475&threadId=92457

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1050571

Regards,
Hemanth
Jaime Bolanos Rojas.
Honored Contributor

Re: Easy question!

Thank you all.

I have it written down, Posix -- awk -- sed -- Perl and eventually if I am still alive C.

Regards,

Jaime.
Work hard when the need comes out.