All pastes #609938 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-09 04:34 UTC
rendered paste body
#!/bin/bash

if [ -z $1 ]; then
echo "Usage: $0 <uid> <program> <args...>"
exit 1
fi

run=0
while [ $run != 1 ]
do
uid="$(echo `id -u`)"
if [ "$uid" = $1 ]; then
run=1
fi
echo running ...
$1 $2 $3 $4 $5
done