Re: Easy question! (88 Views)
Reply
Honored Contributor
Jaime Bolanos Rojas.
Posts: 1,168
Registered: ‎08-05-2005
Message 1 of 7 (88 Views)
Accepted Solution

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.
Esteemed Contributor
Tingli
Posts: 613
Registered: ‎08-13-2007
Message 2 of 7 (88 Views)

Re: Easy question!

ksh, perl.
Honored Contributor
Patrick Wallek
Posts: 13,772
Registered: ‎06-21-2000
Message 3 of 7 (88 Views)

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.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 4 of 7 (88 Views)

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...
Honored Contributor
Jean-Luc Oudart
Posts: 1,461
Registered: ‎03-10-1998
Message 5 of 7 (88 Views)

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
Honored Contributor
Hemanth Gurunath Basrur
Posts: 624
Registered: ‎03-28-2003
Message 6 of 7 (88 Views)

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

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

Regards,
Hemanth
Honored Contributor
Jaime Bolanos Rojas.
Posts: 1,168
Registered: ‎08-05-2005
Message 7 of 7 (88 Views)

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