Solved

PERL QUESTION

Posted on 2004-03-26
2
156 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

752 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