function nvis()
{
while true; do
nvidia-smi
sleep $1
done
}
I'm trying to use it like:
nvis 2
and I get an error like:
bash: syntax error near unexpected token `2'
Sorry if this is obvious; I am kind of stumped.
function nvis()
{
while true; do
nvidia-smi
sleep $1
done
}
I'm trying to use it like:
nvis 2
and I get an error like:
bash: syntax error near unexpected token `2'
Sorry if this is obvious; I am kind of stumped.