From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,36f89f38be16f64 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-12-22 20:23:29 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: fpm@hotmail.com (Finnbarr P. Murphy) Newsgroups: comp.unix.tru64 Subject: Re: /dev/stdin .... ? Date: 22 Dec 2003 20:23:28 -0800 Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 67.20.156.66 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1072153408 32442 127.0.0.1 (23 Dec 2003 04:23:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 23 Dec 2003 04:23:28 +0000 (UTC) Xref: archiver1.google.com comp.unix.tru64:11054 In article , Barth Weishoff wrote: > Hello group, > > I've run this by HP, and they can't seem to come up with a clear > answer. Anyway, long story short, I've been using here documents > with OpenSSH's SFTP program to transfer files among hosts. Example > (stolen from http://www.snailbook.com/faq/scripting-sftp.auto.html ) > > #!/bin/sh > echo "OK, starting now..." > sftp -b /dev/stdin remotehost < cd pub > ... The following works on Tru64 UNIX 5.1B sftp remotehost <