01-09-2010
search "bash scripts" on the www
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
whats a good site for unix learning?
are their any tutorials on this site? (1 Reply)
Discussion started by: mfbww
1 Replies
2. Shell Programming and Scripting
Hi All,
Anyone know any good sites for Unix Solaris Shell Scripting?
Thanks for reading,
b14 (2 Replies)
Discussion started by: B14speedfreak
2 Replies
3. UNIX for Dummies Questions & Answers
Hi guys,
Im just wondering on where a network admin would view a list of visited websites in unix and where to block some websites? (3 Replies)
Discussion started by: jake2891
3 Replies
4. AIX
HI All,
Does anyone out there know of any good online tutorials for the basics of routing, gateways, networking with AIX, preferably the more recent versions like 5.2/5.3?
Using commands such as netstat, smit mkroute, etc. to connect to boxes on a network, and load software with networked... (1 Reply)
Discussion started by: jeffpas
1 Replies
5. Shell Programming and Scripting
In a nutshell here is what I am trying to do:
I have a file with a list of hostnames. I want to read in the file and ssh to each hostname on the list. Do some commands, logout of the server and go onto the next on the list.
I am trying to find a site that is a good tutorial or examples so I... (4 Replies)
Discussion started by: rkruck
4 Replies
6. What is on Your Mind?
Hello. I am trying to find a website where I will post a zip file containing a pdf file and the website can host it and people can download it. I just want to know any good websites for hosting these files. No surveys, free service, ease of use, no pop ups, no sign up and not a lot of advertising.... (6 Replies)
Discussion started by: orszhak
6 Replies
7. What is on Your Mind?
Hi guys
Can you recommend some seriuos web pages with news from IT world :p
Thanks (0 Replies)
Discussion started by: solaris_user
0 Replies
8. UNIX for Dummies Questions & Answers
Hi Guys,
Some of the websites are blocked in my office. And I know the root password.
I tried to unblock those sites.. Checkedcd /etc/modprobe.d
$ cat blacklist.conf
#
# Listing a module here prevents the hotplug scripts from loading it.
# Usually that'd be so that some other driver will... (8 Replies)
Discussion started by: Adhi
8 Replies
LEARN ABOUT POSIX
libbash
LIBBASH(7) libbash Manual LIBBASH(7)
NAME
libbash -- A bash shared libraries package.
DESCRIPTION
libbash is a package that enables bash dynamic-like shared libraries. Actually its a tool for managing bash scripts whose functions you may
want to load and use in scripts of your own.
It contains a 'dynamic loader' for the shared libraries ( ldbash(1)), a configuration tool (ldbashconfig(8)), and some libraries.
Using ldbash(1) you are able to load loadable bash libraries, such as getopts(1) and hashstash(1). A bash shared library that can be loaded
using
ldbash(1) must answer 4 requirments:
1. It must be installed in $LIBBASH_PREFIX/lib/bash (default is /usr/lib/bash).
2. It must contain a line that begins with '#EXPORT='. That line will contain (after the '=') a list of functions that the library
exports. I.e. all the function that will be usable after loading that library will be listed in that line.
3. It must contain a line that begins with '#REQUIRE='. That line will contain (after the '=') a list of bash libraries that are
required for our library. I.e. every bash library that is in use in our bash library must be listed there.
4. The library must be listed (For more information, see ldbashconfig(8)).
Basic guidelines for writing library of your own:
1. Be aware, that your library will be actually sourced. So, basically, it should contain (i.e define) only functions.
2. Try to declare all variables intended for internal use as local.
3. Global variables and functions that are intended for internal use (i.e are not defined in '#EXPORT=') should begin with:
__<library_name>_
For example, internal function myfoosort of hashstash library should be named as
__hashstash_myfoosort
This helps to avoid conflicts in global name space when using libraries that come from different vendors.
4. See html manual for full version of this guide.
AUTHORS
Hai Zaar <haizaar@haizaar.com>
Gil Ran <ril@ran4.net>
SEE ALSO
ldbash(1), ldbashconfig(8), getopts(1), hashstash(1) colors(1) messages(1) urlcoding(1) locks(1)
Linux Epoch Linux