descriptionSimple substitute for “rsync”/“scp” when the remote side has only “cat” and “ls”.
homepage URLhttps://gitorious.org/rpush-cat
ownerimz@altlinux.org
last changeMon, 17 Dec 2012 17:01:32 +0000 (17 21:01 +0400)
content tags
add:
readme

These scripts help me push files over SSH to another system which has only a simple sh, “cat”, and “ls”. They can continue transferring a partially transferred file (by appending to what was left after an interrupted transfer).

In my case, the other system is a non-rooted Android 2.2 with DroidSSHd installed (with no “scp”, “sftp”, or “rsync”).

The same scripts are useful as a substitute for a local "cp" command if you wish to show the progress of copying or complete a partial (interrupted) copy. (But of course, "cp" ismuch more clever about the features of the FS than "cat" and my "rpush"!)

They are not limited to using necessarily “ssh” (it’s a parameter). For example, for testing them on the same host (or for showing the progress of copying), I use just “eval” instead.

“rpush”
is the basic command to transfer a file by creating a new file on the remote side with the use of only “cat”.
“rpush-continue”
is the command to continue the transfer of a file which is already partially present on the remote (with the use of only “cat” and “ls”).
“rpush-into”
is a wrapper around the two basic scripts which puts the file as a file with the same name in a specified directory on the remote side (like one of the ways to invoke “cp”).
shortlog
2012-12-17 Ivan ZakharyaschevAdded author notices.master
2012-12-17 Ivan ZakharyaschevAdded a reference to FISH, which has a similar idea...
2012-09-02 Ivan ZakharyaschevOverwriting is not convenient. A more careful behavior... mob
2012-09-02 Ivan ZakharyaschevAdded a TODO list.@gitorious/master
2012-08-31 Ivan Zakharyaschevrpush-continue: a switch for choosing whether "ls"...
2012-08-30 Ivan ZakharyaschevParameterized rpush-continue on the remote connection...
2012-08-30 Ivan ZakharyaschevNo overhead of a subshell: {} also works.
2012-08-30 Ivan ZakharyaschevI forgot SRC.
2012-08-30 Ivan ZakharyaschevTried to redirect to the pipe a whole subshell (so...
2012-08-30 Ivan ZakharyaschevImplemented the interchange of info and data through...
2012-08-30 Ivan ZakharyaschevRedirection to coproc after () also doesn't work -...
2012-08-30 Ivan ZakharyaschevTry to work around the problem with a redirection from...
2012-08-30 Ivan ZakharyaschevImplemented continuing of an interrupted file transfer...
2012-08-30 Ivan ZakharyaschevMake rsh/ssh/eval a parameter: so that we choose the...
2012-08-29 Ivan ZakharyaschevUsage: treat the 2nd arg just as a prefix (to allow...
2012-08-29 Ivan Zakharyaschev(minor) Progress output: actually, the default switches...
...
tags
11 years ago bad/fd-for-output-to-coproc
heads
11 years ago master
11 years ago mob
11 years ago continue-coproc