Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pcl-expect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
pcl-expect
Commits
56a01682
Commit
56a01682
authored
21 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
Added support for collecting stderr of a spawned program via a pipe.
parent
a264430d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ChangeLog
+18
-0
18 additions, 0 deletions
ChangeLog
with
18 additions
and
0 deletions
ChangeLog
+
18
−
0
View file @
56a01682
2003-10-24 Per Cederqvist <ceder@ceder.dyndns.org>
2003-10-24 Per Cederqvist <ceder@ceder.dyndns.org>
Added support for collecting stderr of a spawned program via a
pipe.
* pcl_expect/spawn.py (_spawn): New helper function, extracted
from Spawn.__init__. New argument: use_stderr_pipe.
(Spawn.__init__): New optional argument: use_stderr_pipe. Set the
stderr attribute to an Expectable object that represents the
stderr output from the subprocess it it is true. Get rid of the
__pty attribute, and renamed __child to __child_pid.
(Spawn.send): Use self.fileno() instead of self.__pty.
(Spawn.close): Ditto. Close the stderr pipe if present.
(spawn2): New function. A possibly easier API if you want to
have the stderr output in a separate Expectable.
* demo/stdout.py: New demo program. Run a subshell in a pty.
* demo/stderr.py: New demo program. Run a subshell in a pty, but
with stderr connected to a pipe.
* README: Mention that pcl-expect can collect stderr of a spawned
program via a pipe.
Added TCP support.
Added TCP support.
* README: TCP support is now implemented.
* README: TCP support is now implemented.
* pcl_expect/tcp.py: New file.
* pcl_expect/tcp.py: New file.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment