#!/bin/sh

command=$1
shift

mkdir -p "strace-$command"
cd "strace-$command"
strace -f -ff -o "$command.strace" -s 8192 -v "$command" "$@"

