On Sat, Apr 13, 2002 at 01:15:32AM +0100, CEPi wrote:
Greetings people,
I need some help or suggestion for a script (actually for my girlfriend who is doing a degree in Comp. Sci in USA). She has a subject on Sys Admin. on Linux :) and on my last trip to USA I installed her a RedHat box at home since they use RH at Uni. , helped her a lot with some other exams on basic sys admin in Linux, inst. etc but I am nowhere with scripting. So here we go the assignment in full :
- Write the AUFF (Add User From File) script.
- This script should take a filename as a command line parameter.
- This file should contain all of the "standard" options for the add user
command. 4. You get to decide the format. 5. You get to document the script. 6. You get to write a "man" document supporting your script. 7. Submit a printout of the script, a test file, and your "man" document. 8. Implementing any advanced parsing features will earn you bonus points. (optional)
Sorry for the long list and any help or suggestions greatly appreciated.
OK, I guess you don't actually want the script written for you - but how about she does something that her college might actually be able to use at a later date... eg pay a visit to the campus admin department and find out what type of format they store their undergraduate admissions data in - then write a script (perhaps Perl?) that would extract the data from that list and add users nicely to the system from it, generating appropriate usernames for all, and perhaps dumping a username/password file that they can easily import back into the main database... She can probably use CPAN modules for the crunching - the rest would only be a few dozen lines - if that...
chris.
ps... ADSL in Ipswich? You lucky sod... I don't think we'll ever have it out here at Eastbridge...