Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* /dev/stdin ....  ?
@ 2003-12-22 19:47 Barth Weishoff
  2003-12-22 21:30 ` Peter da Silva
  2003-12-22 21:32 ` Spider Boardman
  0 siblings, 2 replies; 5+ messages in thread
From: Barth Weishoff @ 2003-12-22 19:47 UTC (permalink / raw)


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 <<EOF
  cd pub
  ...


That works *great* on Solaris, Linux and FreeBSD.   However, it
doesn't work at all on any version of Tru64 unix.  /dev/stdin doesn't
exist, and I'm not sure what to substitute on a Tru64 box in order to
make this work.   I have tried:

 sftp -b `tty` somehost <<HEREDOC

but to no avail.  

I've looked at the /dev/stdin on a typical linux box;

[cj037@stotslin1 fd]$ ls -l /dev/stdin
lrwxrwxrwx    1 root     root           17 Jul 10 09:51 /dev/stdin -> 
  ../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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-12-23  4:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-22 19:47 /dev/stdin .... ? Barth Weishoff
2003-12-22 21:30 ` Peter da Silva
2003-12-23  4:23   ` Finnbarr P. Murphy
2003-12-22 21:32 ` Spider Boardman
2003-12-23  2:47   ` Barth Weishoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox