← Back to team overview

do-plugins team mailing list archive

[Bug 348291] [NEW] Capture Command Output

 

Public bug reported:

It would be useful to have an action, perhaps titled "Run Capturing
Output", that would capture the stdout of a command run by Do and place
it into the Selected Text buffer or perhaps a special buffer of its own.

With this output of arbitrary commands and scripts would be available to
use as input on any Do object. In concept the way Do can pass objects
around is a little like a pipe, and this is basically piping stdout into
Do. Both UNIX and Do are so powerful because of this piping mechanism.

I can see a couple of problems with this, though:

1) Many commands take user input on stdin that Do will not be able to
provide, leaving the process running. Maybe if Do were to fork a process
requesting input the the Terminal this would solve that problem.
Basically fall back on the Run in Terminal command from the GNOME-
Terminal plugin.

2) Some commands will run for a long time, and if Do is tied up waiting
for it to exit, the user cannot use it. There may be some way to either
do the magic fall back to Terminal thing if a command continues for
longer than a minute or two, or to fork the process and allow Do to be
used while the command is running, putting the output into a buffer for
later use.

---

This feature request based on this mailing list post:

** Affects: do-plugins
     Importance: Undecided
         Status: New

-- 
Capture Command Output
https://bugs.launchpad.net/bugs/348291
You received this bug notification because you are a member of GNOME Do
Plugins Team, which is subscribed to GNOME Do Plugins.



Follow ups

References