Re: cygwin perl useradd command

2008-05-10 Thread Jaspreet Singh
alright now i completed. this may be not optimized code but whatever this is what i came up with #!/usr/bin/perl $userprefix = "cygusr_"; $groupprefix = "cyggrp_"; # Function Output Help/Usage sub printhelp {

Re: cygwin perl useradd command

2008-05-09 Thread Hugh Sasse
On Fri, 9 May 2008, Jaspreet Singh wrote: > ok Hugh Sasse > > as you have saw what i have done. i understand everything you > wrote as i am a programer like about using functions and grep. > But, the problem is that i am a windows programer and do > programing in Visual Basic, I have already comp

Re: cygwin perl useradd command

2008-05-09 Thread Jaspreet Singh
ok Hugh Sasse as you have saw what i have done. i understand everything you wrote as i am a programer like about using functions and grep. But, the problem is that i am a windows programer and do programing in Visual Basic, I have already compleated this useradd, usermod , userdel, etc Commands

cygwin perl useradd command

2008-05-09 Thread Jaspreet Singh
hey guys, anybody has useradd command on cygwin. Here's something interesting. i wrote a perl script for useradd command. it takes following arguments -u : Username\n"; -p : Password\n"; -g : Initial Group\n"; -c : Comments\n"; -d : Home Dir