i am not finding the problem, maybe you will... here's the script: /bin/grep -v "\(^#\|^[ ]*$\)" ~/etc/rc.distconfig | \ while read account parts; do echo "distributing to $account ($parts)" ~/bin/distconfig $account done ~/etc/rc.distconfig is a file of the following format: madduck@auric zsh vim ssh madduck@satie zsh reportbug so the above should call the distconfig script for each line with the first argument set to the first field. however, this doesn't work, the while loop runs once, then exits. it works fine if i put an echo in front of the distconfig file, then all lines in rc.distconfig are iterated, but if i call the script, then it just exits after the first iteration. distconfig exits with code 0 all the time. any clues? thanks! -- martin; (greetings from the heart of the sun.) \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck "men always want to be a woman's first love. women have a more subtle instinct: what they like is to be a man's last romance." -- oscar wilde
Attachment:
pgpilUYVqxtZ4.pgp
Description: PGP signature