Solved

PERL QUESTION

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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

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…
It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

778 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