[wplug] BASH
vze2f6h6 at verizon.net
vze2f6h6 at verizon.net
Fri May 9 15:57:39 EDT 2003
I have been reading the TLDP.org's howto for Advanced Bash scripting but still can't figure this out. Here is my script.
for name in $(awk '{print $1)' < "./user")
do
echo "$name";
/usr/sbin/useradd $name;
/bin/su $name;
/var/qmail/bin/maildirmake ~/Maildir;
XXXXXX
/usr/sbin/usermod -s /sbin/nologin $name;
done
exit 0
Now the problem is where the XXXXXX is in the script. I want to exit out of the "su". Everything that I try just exits me from the script.
Thanks,
Chris Romano
More information about the wplug
mailing list