From mboxrd@z Thu Jan 1 00:00:00 1970 From: "" Subject: perl script Date: Fri, 6 Aug 2004 15:13:59 -0700 Sender: linux-newbie-owner@vger.kernel.org Message-ID: <1091830439.411402a7af283@webmail.dpomeroy.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-newbie@vger.kernel.org I'm tring to help a friend that has to put about 250 students in his samba box every year. I'm trying to write a perl script that uses Expect to inter the passwords in the OS, Linux. I spawned Expect->(passwd $password); then Expect "password:". However, I get a syntax error when I try to do that. Anyone with any suggestions. It seems I just don't have the receive syntax down. I'm also having a hard time finding much documentation, examples for the Expect module. Thanks in ADvance. Dave Pomeroy - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs