All pastes #609961 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-07-09 04:57 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 ...
echo "command: $0 $1 $2 $3 $4 $5"
$1 $2 $3 $4 $5
done