Mercurial > hg > paul
view bin/fromE @ 6:a6d23e7fab01 default tip
final, all sigs on multiple pages
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Thu, 08 Oct 2026 12:51:14 +0100 |
| parents | 2aa53823fb21 |
| children |
line wrap: on
line source
#!/bin/bash # Fetch file(s) from Edinburgh desktop machine # Paths should be absolute or relative to remote home dir # Globbing works (but quote it on the way in to avoid local interpretation) # To rename a single remote file do fromE remote -r local echo xcp "$DESKTOP:" "$@" xcp "$DESKTOP:" "$@" exit $? # Older version follows ff= dest=. if [ "x$2" = "x" ] then ff=troutbeck.inf.ed.ac.uk:$1 else while [ "x$2" != "x" ] do ff="$ff troutbeck.inf.ed.ac.uk:$1" shift done dest=$1 fi echo scp $ff $dest scp $ff $dest
