comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: using GNAT.Expect?
Date: Fri, 17 Apr 2015 10:20:22 -0500
Date: 2015-04-17T10:20:22-05:00	[thread overview]
Message-ID: <85vbguye6h.fsf@stephe-leake.org> (raw)

I'm trying to use GNAT.Expect to run sftp in a spawned process.

It mostly works, but I'm having trouble waiting for the results of a
command properly.

It would be simple if I could always wait for the prompt "sftp>", but
GNAT.Expect doesn't see that until the next command is echoed. I'm
guessing there is some layer that is waiting for a newline.

I'm running on Windows 7. Is there some way to force GNAT.Expect to not
wait for a newline?

Any other suggestions?

I'll try to integrate the sftp code directly, but there is no simple
library for that (curl is too messy when trying to use sftp).

-- 
-- Stephe


             reply	other threads:[~2015-04-17 15:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-17 15:20 Stephen Leake [this message]
2015-04-19 14:32 ` using GNAT.Expect? briot.emmanuel
2015-04-20 15:55 ` Stephen Leake
replies disabled

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