12-29-2010
Quote:
Originally Posted by
darklordpooky
Hey, I'm playing around with the same script and when I try to run it I get an error saying:
line 21: mail: command not found
anyone know why?
Which flavor of UNIX u r using?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm a total beginner at awk and hope someone can advise what I have done wrong in the following script:
I have a file which (to simplify things) may be something like this
Fred Smith and Sue Brown
Joe Jones and Jane Watts
Sally Green and Jim O?
Connor
Freda O?
Reiley and Pat O?... (2 Replies)
Discussion started by: Bab00shka
2 Replies
2. Shell Programming and Scripting
Hey all. Thanks in advance for any help you can give, hopefully this is an easy one. I want to create a loop to run a simple performance monitor like vmstat and record it to a file, but have very limited scripting skills (obviously).
Starting with this...
date >> /var/log/perfmon.log
vmstat... (2 Replies)
Discussion started by: mattlock73
2 Replies
3. Shell Programming and Scripting
Hey guys! This is my first post, as im new here :S
I have a simple problem for a big program.
We have a .sh to install it, but when I run the .sh in terminal like i should, It says the class is not found. I believe it has to do with the syntax, as the person who made it is not a linux pro. I... (3 Replies)
Discussion started by: Drags111
3 Replies
4. Shell Programming and Scripting
I haven't done any scripting for quite a while and was trying to remember how to do a script with a for loop that uses another command for input straight from the terminal, IE:
for num in `cat somefile | awk <whatever>` do echo $num; echo blah; echo blahblah; done;
Hopefully something quick... (1 Reply)
Discussion started by: Vryali
1 Replies
5. Shell Programming and Scripting
folowing code is not working I am a newbie can u help me about it I need to match an array variable to a pattern which is like -rw-r--r--
if } =.r........ ] /* I tried to make every like to accept every thing that starts with any char that has secon char as r and accept any 8 chars after *\... (1 Reply)
Discussion started by: feline
1 Replies
6. Shell Programming and Scripting
I need help writing a bash script that will simply prompt the user with a list of choices, then run an action based on the input. The action is running a wake-on-lan app called etherwake and passing a pre-defined mac address to the syntax.
I have defined the three MAC addresses as: MAC1, MAC2,... (12 Replies)
Discussion started by: graysky
12 Replies
7. Shell Programming and Scripting
Hi to everybody!
I want to write a simple script in ksh that decrypts and encrypts using the DES algorithm.
There is no builtin function in UNIX : i have found only a function in openssl but i don't understand how to use it.
The script must accept in input the plaitext and the DESKEY in... (2 Replies)
Discussion started by: kazikamuntu
2 Replies
8. UNIX for Dummies Questions & Answers
How do you create a simple script that runs without the ./ ? (2 Replies)
Discussion started by: secno
2 Replies
9. AIX
I am trying to gather a report on service accounts. The report needs the account and the last time they changed there passwords date (Lastupdate). I have been doing this one by one and wondering if there is a simple for loop to gather all the information. your help is greatly appreciated. (4 Replies)
Discussion started by: audis$
4 Replies
10. Shell Programming and Scripting
Script newbie, so I'm sure I'm missing something obvious here, but how come this simple script does not work?
#!/bin/bash ... (3 Replies)
Discussion started by: KidCactus
3 Replies
LEARN ABOUT DEBIAN
authen::simple
Authen::Simple(3pm) User Contributed Perl Documentation Authen::Simple(3pm)
NAME
Authen::Simple - Simple Authentication
SYNOPSIS
use Authen::Simple;
use Authen::Simple::Kerberos;
use Authen::Simple::SMB;
my $simple = Authen::Simple->new(
Authen::Simple::Kerberos->new( realm => 'REALM.COMPANY.COM' ),
Authen::Simple::SMB->new( domain => 'DOMAIN', pdc => 'PDC' )
);
if ( $simple->authenticate( $username, $password ) ) {
# successfull authentication
}
DESCRIPTION
Simple and consistent framework for authentication.
METHODS
o new
This method takes an array of "Authen::Simple" adapters. Required.
o authenticate( $username, $password )
Returns true on success and false on failure.
SEE ALSO
Authen::Simple::ActiveDirectory.
Authen::Simple::CDBI.
Authen::Simple::DBI.
Authen::Simple::FTP.
Authen::Simple::HTTP.
Authen::Simple::Kerberos.
Authen::Simple::LDAP.
Authen::Simple::NIS.
Authen::Simple::PAM.
Authen::Simple::Passwd.
Authen::Simple::POP3.
Authen::Simple::RADIUS.
Authen::Simple::SMB.
Authen::Simple::SMTP.
Authen::Simple::SSH.
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-19 Authen::Simple(3pm)