From: "" <dave@dpomeroy.com>
To: linux-newbie@vger.kernel.org
Subject: perl script
Date: Fri, 6 Aug 2004 15:13:59 -0700 [thread overview]
Message-ID: <1091830439.411402a7af283@webmail.dpomeroy.com> (raw)
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
reply other threads:[~2004-08-06 22:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1091830439.411402a7af283@webmail.dpomeroy.com \
--to=dave@dpomeroy.com \
--cc=linux-newbie@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