Solved

PERL QUESTION

Posted on 2004-03-26
2
165 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
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 basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

630 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