You are not logged in.

#1 2011-02-04 23:25:13

hso
Member
From: Chile
Registered: 2007-10-09
Posts: 10

Run process in xmonad and capturing output

Hi!

For my xmonad config, I need something like spawn, but that will return any output from the process spawned.

I was thinking of using runProcessWithInput from Xmonad.Utils.Run.

Is there a better way to do this?

Offline

#2 2011-02-05 00:24:39

escondida
Package Maintainer (PM)
Registered: 2008-04-03
Posts: 157

Re: Run process in xmonad and capturing output

You may find runProcess from System.Process to be of some help. It takes several options, including handles for STDIN, STDOUT, and STDERR.

Offline

Board footer

Powered by FluxBB