10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to understand why a script behaves different when run through a pipe.
My OS:
Linux myip 3.13.0-92-generic #139-Ubuntu SMP Tue Jun 28 20:42:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
This script (myscript.sh):
#!/bin/bash
echo whoami:
whoami
echo who:
who
echo who... (2 Replies)
Discussion started by: SkySmart
2 Replies
2. Linux
Dear expert,
I have configured the printer on my linux server, Daily its getting disable and user cannot access the printer.
Request you to please help me on this, Attached the screen shot.
Thank you,
Faiz. (2 Replies)
Discussion started by: Mohammed Faiz
2 Replies
3. Red Hat
Hi all Expertise,
I have following issue to solve,
SSL / TLS Renegotiation DoS (low) 222.225.12.13
Ease of Exploitation Moderate
Port 443/tcp
Family Miscellaneous
Following is the problem description:------------------
Description The remote service encrypts traffic using TLS / SSL and... (2 Replies)
Discussion started by: manalisharmabe
2 Replies
4. Shell Programming and Scripting
Does anyone know of a reliable method to disable tilde expansion while a script is running and then re-enable it when the script is done?
I often have to work with files that have sections like this in them:
555 ~~~~~~~~~~ AN:AutoAttendant~~~~~~~~~~~~
9195551212 ~~~~~ ... (1 Reply)
Discussion started by: jaimielives
1 Replies
5. Solaris
Hi,
I am using solaris 10, 1 of the printers encounter some issue and it is always disable itself and dont know why? any idea how to make it auto enable back to normal? is there any configuration or scripts?? kindly advise me. thanks. (2 Replies)
Discussion started by: freshmeat
2 Replies
6. Shell Programming and Scripting
Hi All,
I have bash script, so what is sintax script in bash for Enable and Disable Tab Key. Thanks for your help.:(
Thanks,
Rico (1 Reply)
Discussion started by: carnegiex
1 Replies
7. Solaris
Anyone know how to disable SU right for a particular user in Solaris 8 (4 Replies)
Discussion started by: civic2005
4 Replies
8. UNIX for Dummies Questions & Answers
i have this unix version "unix v/386" and i want to disable su
kindly help me (2 Replies)
Discussion started by: sak900354
2 Replies
9. Shell Programming and Scripting
hi..
I want to disable the messages that comes when USB device is inserted.
I tried to do 2> /dev/null...
again messages are coming to the screen..
Please help..
esham (3 Replies)
Discussion started by: esham
3 Replies
10. UNIX for Dummies Questions & Answers
Im sure this is somthing easy to do but i just can not figure it out where and how would i take X out of the boot for hp ux 11 i looked in the man's and nothing so maybe sombody could throw me a bone... thanks
BB (8 Replies)
Discussion started by: bbutler3295
8 Replies
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