From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,36f89f38be16f64,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-12-22 11:47:39 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: barth.e.weishoff@cummins.com (Barth Weishoff) Newsgroups: comp.unix.tru64 Subject: /dev/stdin .... ? Date: 22 Dec 2003 11:47:39 -0800 Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 12.148.202.85 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1072122459 30753 127.0.0.1 (22 Dec 2003 19:47:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 22 Dec 2003 19:47:39 +0000 (UTC) Xref: archiver1.google.com comp.unix.tru64:11049 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 < ../proc/self/fd/0 As you can see, it's just a link to /proc/self/fd/0 which is in turn linked to the current tty lrwx------ 1 cj037 cj037 64 Dec 22 13:44 0 -> /dev/pts/2 Which is why I attempted to use `tty` in tandem with the -b option in SFTP. Does anyone have any idea how to accomplish this under Tru64? Thanks! -BW