Indulge me for a moment...
Dec. 29th, 2010 12:41 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
...while I talk about something, like, 5 people are going to care about:
I always tell my students that what makes Linux's learning curve worthwhile, particularly for sysadmins, is how phenomenally lazy it lets you be once you've overcome it. Case in point, I needed to copy a PDF to a system that I could only reach by way of another system. Sure, I could have copied it to systemX, then ssh'd in and from there copied it to systemY, but that's tedious. We hates tedium. How about this instead?
[brad@foo ~]$ cat file.pdf | ssh systemX "cat | ssh systemY 'cat > file.pdf'"
The rabbit hole, it goes deep.
I always tell my students that what makes Linux's learning curve worthwhile, particularly for sysadmins, is how phenomenally lazy it lets you be once you've overcome it. Case in point, I needed to copy a PDF to a system that I could only reach by way of another system. Sure, I could have copied it to systemX, then ssh'd in and from there copied it to systemY, but that's tedious. We hates tedium. How about this instead?
[brad@foo ~]$ cat file.pdf | ssh systemX "cat | ssh systemY 'cat > file.pdf'"
The rabbit hole, it goes deep.