[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Mon Nov 22 22:21:54 2004 -->
- <!--x-from-r13: syrgpu ng culqrnhk.bet (Tyrgpu) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Python & pexpect problem -->
- <li><em>date</em>: Mon Nov 22 22:21:54 2004</li>
- <li><em>from</em>: fletch at phydeaux.org (Fletch)</li>
- <li><em>in-reply-to</em>: <<a href="msg00910.html">[email protected]</a>> (Jay Loden's message of "Mon, 22 Nov 2004 08:56:25 -0500")</li>
- <li><em>references</em>: <<a href="msg00910.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Python & pexpect problem</li>
[...]
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
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00910" href="msg00910.html">[ale] Python & pexpect problem</a></strong>
<ul><li><em>From:</em> jloden at toughguy.net (Jay Loden)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00949.html">[ale] Michael Millard is out of the office until Nov. 22</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00951.html">[ale] VNC dieing and killing session</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00910.html">[ale] Python & pexpect problem</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00938.html">[ale] Python & pexpect problem</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00950"><strong>Date</strong></a></li>
<li><a href="threads.html#00950"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>