mumuki/mumukit

View on GitHub
bin/limit

Summary

Maintainability
Test Coverage
#!/bin/bash

SIZE=$1
shift
TIME=$1
shift
COMMAND=$@

ulimit -Sv $(expr 1024 \* $SIZE) -St $TIME
sh -c "$COMMAND"