[KLUG Members] remote copy of /homes directory
Adam Tauno Williams
awilliam at whitemice.org
Sat Dec 4 10:49:50 EST 2004
> > Your second command could be as simple as "cat > /{somedir}/{somefile}",
> > that would write directly to a file.
> So the cat would work without a filename, then?
Yes, if no filename is provided cat assumes standard input (file handle
0). You can also use the "-" filename again, which sometimes is a
little clearer.
cat /etc/passwd | cat
is the same as
cat /etc/passwd | cat -
so you can do things like
cat /etc/passwd | cat - | sort
*pointless in this example, but you get the idea
as part of the ssh command-to-execute
> The input stream must contain an end of file character then?
I don't know how it is encoded, but EOF is communicated across the pipe.
More information about the Members
mailing list