Bug 132386 - Capture subprocess command output without sending
Summary: Capture subprocess command output without sending
Status: CONFIRMED
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-14 13:09 UTC by Stephan Sokolow
Modified: 2013-04-14 23:55 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Sokolow 2006-08-14 13:09:28 UTC
Version:           0.19 #3100 (using KDE 3.5.2, Gentoo)
Compiler:          gcc version 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9)
OS:                Linux (i686) release 2.6.16-gentoo-r9-20060701

/exec can't run shell commands. This prevents quick little conversation helpers like "What kernel are you running?" "/exec -o uname -a" and differs from both X-Chat and irssi.
Comment 1 Eike Hein 2006-08-14 13:11:47 UTC
'/exec cmd', however, can. Closing.
Comment 2 Stephan Sokolow 2006-08-15 01:31:36 UTC
But there's apparently no equivalent to "/exec command" (display the output, but don't send it to the channel/user)
Comment 3 Eike Hein 2006-08-26 20:09:30 UTC
Rename for clarity.
Comment 4 argonel 2006-11-10 01:17:27 UTC
Why is this necessary? There is Konsole, and an embedded konsole window.
Comment 5 Stephanie Daugherty 2006-11-10 03:44:51 UTC
yes, there is konsole, but for quick one off commands, its often overkill.

There are a lot of external commands that you'd want to run from the client...
/exec host <some hostname>
/exec host <some ip>
/exec whois <some hostname>
/exec whois <some ip>
All of those are common cases, and that's not even getting into typical "power user" scenarios, such as checking a host against DNSBLs, setting up ssh/ssl tunnels, and stuff.

Also, once there's scripting capability, it will be desireable to invoke and interact with shell commands from scripts.


Comment 6 Jonas Vejlin 2009-06-07 14:50:18 UTC
When I tries to run /exec -o uname -a in konversation 1.2 alpha 3 on kde 4.2.4 in debian sid I got a error messege that telle me it cannot find scriptet "-o" ([14:48] [D-Bus] Fejl: Kunne ikke finde scriptet "-o")
So I geuss that is still valid (even after all thoes years)
Comment 7 Eike Hein 2009-06-07 15:20:34 UTC
As stated above, "/exec cmd uname -a" (or just "/cmd uname -a" due to the auto-generated alias) would work just fine, assuming your intent is to send the output to the current channel or query.

This entry is kept open because there's an unimplemented wish for the "cmd" script to recognize a parameter that makes it merely display the output to the user locally, rather than send it out for all to see.