4 ms·
I know you've already solved this problem, but a few tips I've learned along the way in case you - or anyone else - runs into this problem again: If only Bash
by laumars 9y ago
I know you've already solved this problem, but a few tips I've learned along the way in case you - or anyone else - runs into this problem again:
If only Bash worked then you can use Bash's builtin TCP/IP stack[1][2] to transfer data (inc files)[1][2]
[1] http://www.linuxjournal.com/content/tech-tip-tcpip-access-using-bash http://www.linuxjournal.com/content/tech-tip-tcpip-access-us...
[2] http://www.linuxjournal.com/content/more-using-bashs-built-devtcp-file-tcpip http://www.linuxjournal.com/content/more-using-bashs-built-d...
This is how I got around a similar problem as yourself regarding needing to get a file on a system which was severely locked down.
Also you can get around the `chmod +x` problem by calling ld directly[3]
[3] https://superuser.com/a/341471 https://superuser.com/a/341471
- zeroDivisible 9y agoI did not thought about passing a binary to `ld` directly, that's quite cool actually.
- rdtsc 9y agoI like Bash's TCP thing. First time I saw it thought a coworker was pulling my leg. Since then I've used it in a few places like talking to a metrics daemon on localhost, or just debugging various issues. The most fun thing is to show it to others as almost everyone is surprised about it.