Solved

PERL QUESTION

Posted on 2004-03-26
2
134 Views
Last Modified: 2010-04-06
hELLO EVERYONE :)
i was wondering if anyone knows how to create a perl script that reads in user information from a text file (the text file can only consist of First name, last name and email address) and creates a user account using first initial of first name and the last name and also create a generic password.  after that is done, it will then email the user their username and password.
0
Comment
Question by:ghjs
2 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 10687135
read file

http://www.devdaily.com/perl/edu/articles/pl010002.shtml

and to send mail

http://perl.about.com/library/weekly/aa022000a.htm

I dont think you can create a user from perl
0
 
LVL 12

Accepted Solution

by:
venkateshwarr earned 500 total points
ID: 10690095

You can create a user by executing shell command like...

$username = testaccount;
$passwd = testaccount;
$output = `useradd $username -p $passwd`;

http://linux.about.com/library/cmd/blcmdl8_adduser.htm

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now