Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '10.4: Setup a write-only networked clipboard' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Setup a write-only networked clipboard
Authored by: adrianm on Sep 16, '05 10:51:39AM
If you are going to use ssh anyway, why not just type something lilke:

echo test | ssh remotehost /usr/bin/pbcopy

You'd need to turn on sshd (remote terminal access, or whatever it's called) in Sharing prefs, but then you'd have to do that anyway.

[ Reply to This | # ]

10.4: Setup a write-only networked clipboard
Authored by: xSmurf on Sep 16, '05 03:20:18PM
This did not work for me (sending for a 10.3 to 10.4 machine).
I have used the launchd method and >/dev/tcp/... (the other one didn't work)
As for security, I have set the port to be blocked by the router.
I have also added three aliases to my bash_profile.

alias echo2remote='echo "$1" > /dev/tcp/REMOTEHOST/2224'
alias cat2remote='cat $1 > /dev/tcp/REMOTEHOST/2224'
alias paste2remote='/usr/bin/pbpaste > /dev/tcp/REMOTEHOST/2224'

Works like a charm, very useful...

Free iPods, now in Canada to! Get yours :

PM G4 DP 800 / 1.25gb / 120Gb+80Gb / CD/DVD±RW/RAM/DL
- The only APP Smurf

[ Reply to This | # ]