module Handler.System where

import Import
import System.Process (readProcess)

getSystemR :: Handler String
getSystemR = liftIO $ do
    x <- readProcess "df" ["-ih"] ""
    y <- readProcess "ls" ["-lh", "/tmp"] ""
    return $ unlines [x, y]

module Handler.System where

import Import
import System.Process (readProcess)

getSystemR :: Handler String
getSystemR = liftIO $ readProcess "df" ["-ih"] ""

Remove some incriminating info from /system
Remove some incriminating info from /system
