07-17-2018
I would not know this going in. I would need to read the config file during script execution which is why I was hoping someone with a bit more experience might provide examples. If you can suggest a way for each based on the config option, I can likely work on the code from there. The solution will be used for more than one hosted customer so I wanted to be able to reuse the same code and produce output for each regardless of which direction they went.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
Is it possible to add the following to an ldif entry:
dn=estmmartín
i.e Note the charchter 'í'
Thanks in advance (3 Replies)
Discussion started by: tom123
3 Replies
2. Shell Programming and Scripting
Hi
I'm not a programmer but am muddling through as best I can. I am trying to set up a PostSearchHook for Radiator (RADIUS server), that carries out an LDAP lookup, and, based on the
string returned ("staff" or "student") in the "businessCategory" attribute, will set the $role to be either 40... (3 Replies)
Discussion started by: mikie
3 Replies
3. UNIX for Dummies Questions & Answers
I would like to do an ldap search which looks for entries which do not actually have a certain attribute. Not that the attribute is Null, but where the attribute does not exist.
Is this possible using ldapsearch? (3 Replies)
Discussion started by: dopple
3 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Pardon me if this turns out to be a dumb question. But I am trying to schedule a cron job for a my script which takes input options. So an entry in crontab would be something like:
1 * * * * run_report.sh -o out.csv -m monthly -e somename@email.com > cron_output.log 2> cron_error.log... (3 Replies)
Discussion started by: trueharsh
3 Replies
5. Solaris
Hi all
I had a mail issue earlier today where I was not receiving any emails from the servers of one of our clients.
The mail queue just showed this:
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
o8S7eSpp020274* 5858 Tue Sep 28 10:42... (0 Replies)
Discussion started by: notreallyhere
0 Replies
6. Red Hat
Hi,
We have a mail server which has Zimbra installed on it and a file server. Folks use the same login information they use to access their email to access the file server. So the file server is using the same LDAP server as the mail server.
Couple days ago, at around 12 PM all of the sudden,... (3 Replies)
Discussion started by: tezarin
3 Replies
7. Shell Programming and Scripting
Hi All,
I have a existing Ldap query which take a HOME as variable and gives the result where i grep for a particular line.
ldapsearch -h server_domain_name -p 389 -D "uid=user,ou=appadm,o=ent" -w PaB -b "ou=roles,o=ent" "cidx=$HOME" | grep -w "ent: xyz"
Now i have 330K Homes in a... (1 Reply)
Discussion started by: posner
1 Replies
8. Emergency UNIX and Linux Support
Hi Friends,
I have below scenarios .
dom1.test.com - LDAP
dom2.test.com - AD
Requirement is establish a trust relation between LDAP and AD server in such a way that if any user login on LDAP managed authentication server with
dom1\username -> get authenticated by LDAP host
... (2 Replies)
Discussion started by: Shirishlnx
2 Replies
9. Shell Programming and Scripting
Hello,
i need some help with a script. I made a script, which connect to different hosts to get some informations. But i got now some problems with getting informations of a database (db2) which is on a other host. I tried something like
var=$(rsh HOST su - db2adm -c "db2 connect to database;... (2 Replies)
Discussion started by: Cyver
2 Replies
10. UNIX and Linux Applications
I need to write LDAP group query where I need to find if a particular user is a member of a 2 specific Groups. This is LDAP Novell edirectory implementation.
Below are the details -
================
LDIF entry for OndotAPI group
dn: cn=OndotAPI,ou=Groups,o=CNS
changetype: add ... (0 Replies)
Discussion started by: jhamaks
0 Replies
LEARN ABOUT DEBIAN
bpython3
BPYTHON(1) General Commands Manual BPYTHON(1)
NAME
bpython - a fancy curses interface to the Python interactive interpreter
SYNOPSIS
bpython [options] [file [args]]
DESCRIPTION
The idea is to provide the user with all the features in-line, much like modern IDEs, but in a simple, lightweight package that can be run
in a terminal window.
* In-line syntax highlighting.
Hilights commands as you type!
* Readline-like autocomplete with suggestions displayed as you type.
Press tab to complete expressions when there's only one suggestion.
* Expected parameter list.
This displays a list of parameters for any function you call. It uses the inspect module, then tries pydoc.
* Rewind.
This is a bit misleading, but it code that has been entered is remembered, and when you Rewind, it pops the last line and re-evalu-
ates the entire code. This is error-prone, and mostly useful for defining classes and functions.
* Pastebin code/write to file.
This posts the current buffer to a pastebin (paste.pocoo.org) or writes it to a file.
* Flush curses screen to stdout.
Unlike other curses apps, bpython dumps the screen data to stdout when you quit, so you see what you've done in the buffer of your
terminal.
OPTIONS
The long and short forms of options, shown here as alternatives, are equivalent. If bpython sees an argument it does not know, execution
falls back to the regular Python interpreter.
--config=config
Use config instead of default config file.
-h
--help
Show the help message and exit.
-i
--interactive
Drop to bpython shell after running file instead of exiting. The PYTHONSTARTUP file is not read.
-q
--quiet
Do not flush the output to stdout.
-V
--version
Print bpython's version and exit.
KEYS
bpython's keys are fully configurable. See http://docs.bpython-interpreter.org/configuration.html#keyboard
FILES
~/.bpython/config
Your bpython config. See sample-config (in /usr/share/doc/bpython/examples on Debian) for various options you can use, or read
bpython-config(5)
.
KNOWN BUGS
See http://bitbucket.org/bobf/bpython/issues/ for a list of known issues.
SEE ALSO
bpython-config(5), python(1).
AUTHOR
bpython was written by Robert Anthony Farrell <robertanthonyfarrel@gmail.com> and his bunch of loyal followers.
This manual page was written by Jorgen Pedersen Tjerno <jorgen@devsoft.no>, for the Debian project (but may be used by others).
September 21, 2009 BPYTHON(1)