[ale] Python & pexpect problem

Fletch fletch at phydeaux.org
Mon Nov 22 22:21:54 EST 2004


>>>>> "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



More information about the Ale mailing list