04-14-2016
9 More Discussions You Might Find Interesting
1. Programming
I am writing a program in C.
It is kind of a daemon process.
In this program, at the end of every 2 hours,
i need to fire an event. How can i achieve this
timer effect in my program? (1 Reply)
Discussion started by: Nadeem Mistry
1 Replies
2. UNIX for Dummies Questions & Answers
Hi. I hope someone can help me with this problem.
Being a novice to Unix, I editted my crontab directly
by typing " crontab -e ". Well, I needed to make some
changes so, I typed " crontab -r ". Now I have no crontab,
and I can't seem to get crontab to write a new file.
I' ve tried:
vi... (4 Replies)
Discussion started by: cstovall
4 Replies
3. Shell Programming and Scripting
Why is my awk script not firing and how can I confirm?
#!/usr/bin/ksh
# LU 5 FEB 2007 12:35
OLDDATE=`cat TIMEFILE`
for FILE in `find /home/Upload -prune -type f -newer TIMEFILE`
do
gawk -f convert_sun.awk "/home/Upload/$FILE"
done
date > TIMEFILE (5 Replies)
Discussion started by: goodmis
5 Replies
4. AIX
Hi,
I needed space on a FS, and when I've added the space on the filesystem, I did it trough the regular smitty fs inteface and not with smitty cl_lvm.
Can someone help me to repair the situat before a faileover happen ?
Thanks for your help,:mad: (13 Replies)
Discussion started by: azzed27
13 Replies
5. Shell Programming and Scripting
cat $1 | sort -n | uniq | $1
in other words, I sort the content of the file and put the ouput in the same file, is there any mistakes in this cshell code ??? (4 Replies)
Discussion started by: Takeeshe
4 Replies
6. UNIX for Dummies Questions & Answers
Hi everyone !
I have a file wich look like this :
>Sis01
> Sis02
...
>Sis44
I want to separe each paragraphe in a different file, so I decide to use the "FOR" loop + sed.
for f in {01..44}
do (5 Replies)
Discussion started by: sluvah
5 Replies
7. UNIX for Dummies Questions & Answers
Hi there can anyone help me to spot my mistake and please explain why it appears
My code :
#!/usr/bin/gawk -f
BEGIN { bytes =0}
{ temp=$(grep "datafeed\.php" | cut -d" " -f8)
bytes += temp}
END { printf "Number of bytes: %d\n", bytes }
when I am running ./q411 an411
an411:
... (6 Replies)
Discussion started by: FUTURE_EINSTEIN
6 Replies
8. Shell Programming and Scripting
Hi,
I am using the below command to connect to a remote Oracle DB from my unix shell script.
sqlplus -s user1/password1@remotedbhost:1252/demo @/tmp/PROC_MS.prc
But I get the below error.
1. Can you confirm if my code is correct ?
2. Can you help me overcome the error ? (3 Replies)
Discussion started by: mohtashims
3 Replies
9. Shell Programming and Scripting
Hi,
I would like to get the audit log with username, directory and the date whenever user fires 'rm' command anywhere in the file locations.
Is there any possibility to capture the 'rm' command and its parameters from any environment by the single function ?
Please advise me.
... (4 Replies)
Discussion started by: Joviac
4 Replies
LEARN ABOUT DEBIAN
authen::simple::activedirectory
Authen::Simple::ActiveDirectory(3pm) User Contributed Perl Documentation Authen::Simple::ActiveDirectory(3pm)
NAME
Authen::Simple::ActiveDirectory - Simple ActiveDirectory authentication
SYNOPSIS
use Authen::Simple::ActiveDirectory;
my $ad = Authen::Simple::ActiveDirectory->new(
host => 'ad.company.com',
principal => 'company.com'
);
if ( $ad->authenticate( $username, $password ) ) {
# successfull authentication
}
# or as a mod_perl Authen handler
PerlModule Authen::Simple::Apache
PerlModule Authen::Simple::ActiveDirectory
PerlSetVar AuthenSimpleActiveDirectory_host "ad.company.com"
PerlSetVar AuthenSimpleActiveDirectory_principal "company.com"
<Location /protected>
PerlAuthenHandler Authen::Simple::ActiveDirectory
AuthType Basic
AuthName "Protected Area"
Require valid-user
</Location>
DESCRIPTION
Authenticate against Active Directory.
This implementation differs from Authen::Simple::LDAP in way that it will try to bind directly as the users principial.
METHODS
o new
This method takes a hash of parameters. The following options are valid:
o host
Connection host, can be a hostname, IP number or a URI. Defaults to "localhost".
host => ldap.company.com
host => 10.0.0.1
host => ldap://ldap.company.com:389
host => ldaps://ldap.company.com
o port
Connection port, default to 389. May be overridden by host if host is a URI.
port => 389
o timeout
Connection timeout, defaults to 60.
timeout => 60
o principal
The suffix in users principal, usally the domain or forrest. Required.
principal => 'company.com'
o log
Any object that supports "debug", "info", "error" and "warn".
log => Log::Log4perl->get_logger('Authen::Simple::ActiveDirectory')
o authenticate( $username, $password )
Returns true on success and false on failure.
SEE ALSO
Authen::Simple::LDAP.
Authen::Simple.
Net::LDAP.
AUTHOR
Christian Hansen "chansen@cpan.org"
COPYRIGHT
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-04-23 Authen::Simple::ActiveDirectory(3pm)