Clemens Hermann wrote:
> <------------------ snip -------------------->
> #!/bin/sh
> cat /usr/local/etc/jails.conf |
> while read dir name ip
> do
> jail ${dir} ${name} ${ip} /bin/sh /etc/rc
> done
> exit 0
> <------------------ snip -------------------->
>
> es funktioniert soweit alles, nur dass ich als erste Meldung (bevor die
> Startmeldungen vom Jail kommen) ein "stty: stdin isn't a terminal" erhalte.
> Das Problem scheint irgendwie mit der pipe von cat zusammenzuhängen.
Wie waer's damit?
#!/bin/sh
while read dir name ip
do
jail ${dir} ${name} ${ip} /bin/sh /etc/rc
done < /usr/local/etc/jails.conf
-- Patric Mrawek (__) (++)-----i\ eat penguins instead, they start to ~~| BSD | * spread around anyway! |_|~|_| To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org with "unsubscribe de-bsd-questions" in the body of the messageReceived on Sun 01 Sep 2002 - 13:57:15 CEST