Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Trying to do sftp via batch job

9 views
Skip to first unread message

James T Horn

unread,
Jun 3, 2004, 5:29:16 PM6/3/04
to
When trying to run a batch job with:

$sftp "-b" /rucs1/ucs/data/cbme01f_get1.txt user...@sftp.domain.com

I get an error:
FATAL: OpenVMS$tty_gettty() failed
%TCPIP-F-SSH_FATAL, non-specific fatal error condition

This same command "$ sftp..." works fine when run from a terminal. Any ideas?

Dirk Munk

unread,
Jun 4, 2004, 2:13:44 AM6/4/04
to
Yes, that is a well known silly problem.
These SSH utilities normally have those wonderfull progress lines, ( 20% done -
40% done etc.) In order to do that the utility needs (vt100) cursor control.
When the utility starts, it checks if the terminal supports cursor control. And
gueass what? A batch terminal does not have cursor control.....

mcki...@cpva.saic.com

unread,
Jun 4, 2004, 10:18:35 AM6/4/04
to
In article <843706dc.04060...@posting.google.com>,


In instances where a utility must be associated with a terminal, and I
need it to run in batch, I use a homegrown PTD$ application that I'm
not currently in a position to share. However, there is an example
(that I've never used) of such an app, written in C, that you can fetch
from

http://mvb.saic.com/freeware/vmslt03a/vu/ptd.zip

and probably adapt to your needs.

0 new messages