Re: [expert] Scripts or software to add many new users

2002-11-15 Thread PlugHead
Sounds like you need to learn shell script... I'm guessing that what you need could be accomplished with a few lines (<20?) of code. Check out: man bash man adduser man groupadd That should get you started... (If you need some examples, try 'locate *.sh'--there are tons of them. Check

Re: [expert] Scripts or software to add many new users

2002-11-15 Thread Jeferson Lopes Zacco
it's something quite specific. Try freshmeat or sourceforge. But you'll probabbly have to do it yourself. It will come out quite easily in Perl or bash methinks. Wooky Patrick Atlas wrote: Hello, We are managing hundred of users on a network based on Netscape Exchange Server (mail, news and w

[expert] Scripts or software to add many new users

2002-11-14 Thread Patrick Atlas
Hello, We are managing hundred of users on a network based on Netscape Exchange Server (mail, news and web). In a few weeks, we would like to change to a linux server (Mandrake of course!) As we don't want to create by hand each existing user, is there a script or a software that will automatical

Re: [expert] scripts

2000-08-05 Thread Daniel Woods
> Try: > $ if [ -f ${x} ]; then echo ${x} ; else echo "NO" ; fi > mysignature > > Forgot to ask: do you _have_ a file called "mysignature"...? I did, and this does work :) Thanks... Dan.

Re: [expert] scripts

2000-08-04 Thread Pierre Fortin
Daniel Woods wrote: > > On Fri, 4 Aug 2000, Pierre Fortin wrote: > > Daniel Woods wrote: > > > > > This will work... > > > > > cd {directory} > > > > > ls -t | head -1 > > > > > or > > > > > ls -t $HOME | head -1 > > > > > > > > > > Using ksh (on Unix), this next line works to only ac

Re: [expert] scripts

2000-08-04 Thread Pierre Fortin
Daniel Woods wrote: > > On Fri, 4 Aug 2000, Pierre Fortin wrote: > > Daniel Woods wrote: > > > > > This will work... > > > > > cd {directory} > > > > > ls -t | head -1 > > > > > or > > > > > ls -t $HOME | head -1 > > > > > > > > > > Using ksh (on Unix), this next line works to only ac

Re: [expert] scripts

2000-08-04 Thread Daniel Woods
On Fri, 4 Aug 2000, Pierre Fortin wrote: > Daniel Woods wrote: > > > > This will work... > > > > cd {directory} > > > > ls -t | head -1 > > > > or > > > > ls -t $HOME | head -1 > > > > > > > > Using ksh (on Unix), this next line works to only accept files > > > > x=`ls -t | head -1

Re: [expert] scripts

2000-08-04 Thread Pierre Fortin
Daniel Woods wrote: > > > > This will work... > > > cd {directory} > > > ls -t | head -1 > > > or > > > ls -t $HOME | head -1 > > > > > > Using ksh (on Unix), this next line works to only accept files > > > x=`ls -t | head -1`; if [[ -f $x ]]; then echo $x ;fi > > > except that I

Re: [expert] scripts

2000-08-03 Thread Daniel Woods
> > This will work... > > cd {directory} > > ls -t | head -1 > > or > > ls -t $HOME | head -1 > > > > Using ksh (on Unix), this next line works to only accept files > > x=`ls -t | head -1`; if [[ -f $x ]]; then echo $x ;fi > > except that I could not get this to work with bash as

Re: [expert] scripts

2000-08-03 Thread Tony McGee
On Fri, 04 Aug 2000, Daniel Woods pushed some small plastic letters in this order: > > > I am new to shell scripting, > > > I would like to create a script in bash shell. > > > that would do the following > > > > > > 1) find out the latest file ( text file)in a directory > > > ( there are bunch

Re: [expert] scripts

2000-08-03 Thread Daniel Woods
> > I am new to shell scripting, > > I would like to create a script in bash shell. > > that would do the following > > > > 1) find out the latest file ( text file)in a directory > > ( there are bunch of files in a dir) This will work... cd {directory} ls -t | head -1 or ls -t $HOME

Re: [expert] scripts

2000-08-03 Thread Tony McGee
On Fri, 04 Aug 2000, J A Shamsi pushed some small plastic letters in this order: > HI > I am new to shell scripting, > I would like to create a script in bash shell. > that would do the following > > 1) find out the latest file ( text file)in a directory > ( there are bunch of files in a dir)

[expert] scripts

2000-08-03 Thread J A Shamsi
HI I am new to shell scripting, I would like to create a script in bash shell. that would do the following 1) find out the latest file ( text file)in a directory ( there are bunch of files in a dir) 2)open that file (text file) and parse the values seperated by comma and store them in variables