CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
users thru perl

 



Niru
Novice

Nov 20, 2009, 12:13 AM

Post #1 of 6 (762 views)
users thru perl Can't Post

Hi,

friends i need a script to implement in Linux .

i have some usernames and passwords in ms excel or .csv file.

my script should read that excel file and create the users and the passwords as per the excel sheet.

for example below is my excel file

usersnames passwords

janxy1 password@12

febxct2 pass@34



Any help can be appreciated

Thanks In Advance

Niru


FishMonger
Veteran / Moderator

Nov 20, 2009, 5:50 AM

Post #2 of 6 (746 views)
Re: [Niru] users thru perl [In reply to] Can't Post

What have you tried?

What portion of the task is giving you trouble?

I'm assuming you have code that you're testing, so what errors/warnings does your code produce?


toolic
User

Nov 20, 2009, 5:52 AM

Post #3 of 6 (745 views)
Re: [Niru] users thru perl [In reply to] Can't Post

If you need to parse an excel file, you could start with this CPAN module:
http://search.cpan.org/~kwitknr/Spreadsheet-ParseExcel-0.2603/ParseExcel.pm

If you need to parse a CSV file, you could start with this CPAN module:
http://search.cpan.org/~hmbrand/Text-CSV_XS-0.69/CSV_XS.pm


Niru
Novice

Nov 21, 2009, 1:51 AM

Post #4 of 6 (738 views)
Re: [toolic] users thru perl [In reply to] Can't Post

Thank you toolic
i will try and let you know.

Niru


Niru
Novice

Nov 21, 2009, 1:52 AM

Post #5 of 6 (737 views)
Re: [FishMonger] users thru perl [In reply to] Can't Post

hi,

i have not tried want some clues to try.

Thank You

Niru


FishMonger
Veteran / Moderator

Nov 21, 2009, 10:56 AM

Post #6 of 6 (718 views)
Re: [Niru] users thru perl [In reply to] Can't Post


In Reply To
hi,

i have not tried want some clues to try.

Thank You

Niru


See:
perldoc -f open
perldoc perlop - Quote-Like Operators (qx & backticks) section
man useradd
man usermod
man passwd

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives