13 lines
152 B
Bash
Executable File
13 lines
152 B
Bash
Executable File
#!/bin/bash
|
|
if [ -z "$@" ]; then
|
|
printf "rep: no commands specified\n"
|
|
exit 1
|
|
fi
|
|
while :; do
|
|
for command in "$@"; do
|
|
$command
|
|
done
|
|
sleep 1
|
|
done
|
|
|