Re: func command module pipe problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you enable shell in the command module you can use pipes. I created a simple module which does just that.

http://github.com/silas/func-modules/tree/master/command_plus.py

On Mon, Nov 24, 2008 at 2:57 PM, Michael DeHaan <mdehaan@xxxxxxxxxx> wrote:
Ozgur Akan wrote:
Hi,

I am trying to use func command module

https://fedorahosted.org/func/wiki/CommandModule

When I use pipe in the command it can not run the command.

func myserver.domain.com <http://myserver.domain.com> call command run "ps -fe | grep root"


How can I override this problem?

thanks,
Ozgur Akan
------------------------------------------------------------------------

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

Subprocess does not do shell pipes, though it does /implement/ pipes.

What you want to do is use Func's process module and if neccessary add modifications to allow you to filter the results, or write an API script using Func that filters the results.

--Michael


_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list



--
Silas Sewell

720-863-4557 | www.silassewell.com
_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux