linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: pacho baratta <pachox@evolinux.it>
To: linux-admin@vger.kernel.org
Subject: Re: help with script
Date: 11 Jun 2003 01:37:08 +0200	[thread overview]
Message-ID: <1055288227.1161.18.camel@alice> (raw)
In-Reply-To: <1055141806.1522.4.camel@alice>

welle i did use something suggested by César Soler:
while read uid
do  ./myscript $uid
done

tnx anybody for hints,
pacho

Il lun, 2003-06-09 alle 08:56, pacho baratta ha scritto:
> i have a txt file with a list of username one by line, say:
> user1
> user2
> user3
> .....
> 
> 
> i'd like to avoid to insert all these users by hand (about 1000 users)
> so i build a script to add users, make dirs and something useful to me
> 
> my goal is to get a way to process txt file and send all users, one by
> one, to my script.
> 
> cat txtfile | ./script
> 
> is processing only the 1st user, not the others.
> 
> any idea to automatize this process?
> tnx, pacho
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2003-06-10 23:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-09  6:56 help with script pacho baratta
2001-07-19 13:31 ` Win Toe ( Penguin Millennium )
2003-06-09  9:47 ` Carl
2003-06-09 12:58 ` Glynn Clements
2003-06-09 13:03 ` Tim Walberg
2003-06-10 19:58 ` Stephen Samuel
2003-06-10 23:37 ` pacho baratta [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1055288227.1161.18.camel@alice \
    --to=pachox@evolinux.it \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).