(anonymous) wrote:
> for those of you not having seen TS-1553, mail
forwarding
> seems to have stopped working. So if you haven't received
> the usual job reports that you were expecting, you might
> want to login to all servers and check if there is mail for
> you. You can query all servers by:
> | for SERVER in clematis hawthorn nightshade
ortelius willow wolfsbane yarrow; do
> | ssh $USER(a)$SERVER.toolserver.org ls -l /var/mail/$USER
> | done
> replacing $USER with your username.
Actually, no need to replace it. $USER is set
automatically.
You can run:
$ for SERVER in clematis hawthorn nightshade ortelius willow wolfsbane
yarrow; do ssh $USER(a)$SERVER.toolserver.org test -s /var/mail/$USER &&
echo $SERVER; done
and it will list for you the servers where you have
mail.
Actually, that's only true for those whose username on the
toolserver is the same as on their private box :-). I'd
have to name my username on the toolserver either explicitly
or rely on my ~/.ssh/config:
| Host *.toolserver.org
| User timl
and always escape the second $USER so that it is expanded on
the toolserver.
Tim