Here's a command I have to monitor my 3 computers in my lan.
Code:
watch 'printf "BSD\n" && ssh bsd ps u && printf "\n" && ssh bsd iostat && printf "\n################################################################################################################################################\n\nCentOS\n" && ssh centos ps u && printf "\n" && ssh centos iostat && printf "\n################################################################################################################################################\n\nDarkstar\n" && ps u && printf "\n" && iostat'
But I'd like to clean it up and make it look like this. However, the perl -e 'print "#"x145' has single quotes which ends up closing the first single quote at watch 'printf.
Code:
watch 'printf "BSD\n" && ssh bsd ps u && printf "\n" && ssh bsd iostat && printf "\n" && perl -e 'print "#"x145' && printf "\n\nCentOS\n" && ssh centos ps u && printf "\n" && ssh centos iostat && prin
tf "\n" && perl -e 'print "#"x145' && printf "\n\nDarkstar\n" && ps u && printf "\n" && iostat'
Any way around that?