Code: Select all
if [[ ... ]] ; then
top
fi
Now , I wold like to run the command "top" in background , it changed the script to as below , it pops the error "top: failed tty get" , would advise what is wrong , how to fix it . thanks .
Code: Select all
if [[ ... ]] ; then
top &
fi