I have just (belatedly) discovered that I can ssh -t from one machine to another and run a command there.
The thought then took me that I should be able to come up with a script that tailed a log file (from a pair) on a machine by doing something like
ssh -t $1 ssh -t $2 tailf /pathtofile/$3/log.log
and indeed if I put in 1,2 and 3 by hand it works just fine.
My problem is that I may have 1,2 or 3 hosts to jump between to make this work.
How would I do this in zsh? I've done some digging and it looks as though shift may be my friend, but I'm a bit lost.