Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!spool.mu.edu!uwm.edu!bionet!parc!mdixon From: mdixon@parc.xerox.com (Mike Dixon) Newsgroups: comp.sys.next Subject: quick & easy slip file transfers Message-ID: Date: 20 Jun 91 19:51:47 GMT Sender: news@parc.xerox.com Distribution: comp Organization: Xerox PARC Lines: 112 here's a little hack i use to make slip file transfers as easy as possible. i put this csh script on the machine i log into at work, with the name of my home machine ('sarah'). then, when logged in over the slip connection, i can say things like sarah get foo >foo (move a file from home to work) sarah print -2r 0) then switch ($1) case put: if ($#argv != 2) then echo "syntax: $remote put $remote-file-name $2" exit case putu: if ($#argv != 2) then echo "syntax: $remote putu $remote-file-name $2" exit case print: compress | rsh $host "uncompress | enscript $argv[2-]" exit case do: if ($#argv == 1) then echo "syntax: $remote do arbitrary-command ... exit 1 endif compress | rsh $host "uncompress | $argv[2-]" exit case dou: if ($#argv == 1) then echo "syntax: $remote dou arbitrary-command ... exit 1 endif rsh $host "$argv[2-]" exit case get: if ($#argv != 2) then echo "syntax: $remote get $remote-file-name >local-file-file" exit 1 endif rsh $host "compress <$2" | uncompress exit case getu: if ($#argv != 2) then echo "syntax: $remote getu $remote-file-name local-file-name\ $remote do