Operating System - HP-UX
1837033 Members
2910 Online
110111 Solutions
New Discussion

resources for scripts used in basic unix administration

 
Shawn Miller_2
Frequent Advisor

resources for scripts used in basic unix administration

I need to work on a basic script, and I am not good a writing scripts. Is there an internet resource that has a bunch of scripts that are being shared, which I can look at to get an idea how to write my own. Basically I want to utilize some one else's work and modify it to work in my environment.
6 REPLIES 6
someone_4
Honored Contributor

Re: resources for scripts used in basic unix administration

you can get many books and here do a search on scripts or script. And if there is something that you are trying to do just post it up here and see what you can get.

Richard
Victor_5
Trusted Contributor

Re: resources for scripts used in basic unix administration

Hi Shawn:

I had the same question when I was a new comer for HP-UX. I read a couple of books about shell, actually, "Fundamentals of the UNIX System, 51434S" (from HP)is the best one in my opinion, very basic, step by step, also has a lot of test questions following every section, however, I don't think you can get it from web site, you will get one if you attend HP's training, or maybe you can order one from HP directly, try to call 1-800-633-3600 and ask for help.

If you perfer free resources, I think ITRC is the best place, so many experienced and helpful people here, just input "script" as keyword and do search, I am sure you will get something.

In a word, read some basic rules first, then read others' real shells, then write your own one. Best wishes.
Mark Vollmers
Esteemed Contributor

Re: resources for scripts used in basic unix administration

Shawn-

Scripting really isn't any different from other programming; just the syntax changes. The basic stuff all applies (if loops, print statements, etc), so if you have some programming background, it's not too bad. Like the others said, though, just give it a shot and post it here (or just ask for what you are looking for). Someone can either help you work out the kinks or they've got one that would work. If you really want to get a hang of it, write simple ones (one that gets input, one that uses menus, etc) and get a feel for it. It is easy to get lost in a big script if you are not familiar. Good luck!

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Joseph Hoh
Frequent Advisor

Re: resources for scripts used in basic unix administration

This may not be the answer but here are some web sites that might help.


http://www.ugu.com

http://hpux.cs.utah.edu/

Rita C Workman
Honored Contributor

Re: resources for scripts used in basic unix administration

Here's a couple handy little places I have gone and things I have done to find some:

http://dhs.state.ar.us:/scripts/

ftp://contrib:9unsupp8@hprc.external.hp.com/sysadmin/

I also go out and search on 'scripts' at:
http://www.dutchworks.nl/htbin/hpsysadmin

Hope these help,
Rita
tim gallagher
Occasional Advisor

Re: resources for scripts used in basic unix administration

These are for Solaris, but would work on HP with some minor changes;

http://www.sun.com/bigadmin/scripts/index.html;$sessionid$UEDIOGQAACSTBAMTA1FU3NQ