[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Python & pexpect problem
- Subject: [ale] Python & pexpect problem
- From: fletch at phydeaux.org (Fletch)
- Date: Mon Nov 22 22:21:54 2004
- In-reply-to: <[email protected]> (Jay Loden's message of "Mon, 22 Nov 2004 08:56:25 -0500")
- References: <[email protected]>
>>>>> "Jay" == Jay Loden <jloden at toughguy.net> writes:
[...]
Jay> However, when I run the script, all I get is an error saying
Jay> "/var/www/html/*.htm" : file does not exist
Not at all familiar with the Python expect stuff but going from the
error message I'd bet something's getting passed straight to exec(2)
rather than going through a shell and having the *.htm expanded. In
the perl world if you give system or exec a single argument with shell
meta characters it'll pass things through sh -c so that redirection
and/or globbing happens, but if you pass a list instead the shell is
bypassed and things are handed off straight to exec(2) underneath.
I'd look at the pexpect docs and see if something similar's the case
here.
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org | Vincent, you should cease askin' \ o.O'
| scary questions." -- Jules =(___)=
| U