drwxrwxrwx 5 1013 1014 3 Jan 16 2024 cert_xxxx_name
sftp> bye
$
Why i din?t see anything about the line relative to "cd $REMOTE_DIR\r" ??
possible that directory don?t exist ??
Any suggestion ?
Thanks
Da: gio.cot <gio.cot@xxxxxxxxxxx>
Inviato: lunedì 30 marzo 2026 17:17
A: 'Midrange Systems Technical Discussion' <midrange-l@xxxxxxxxxxxxxxxxxx>
Oggetto: How to list a directory with expect via sftp
Hi all
I?m tryto put some file in folder SFTP Server; i would need to test if the
transfer is gone ok.
I was thinking to display directory content but i have problem; i have tried
with
expect "sftp>"
send "ls -l \\r <file://r> "
but i receive ?write() failed to write anything - will sleep(1) and
retry...?
if i try to connect to server via QP2TERM , i receive ?Permission denied,
please try again.?
How can i get this info ??
Or is there anyway after put, to show a log that say xxxx byte transfered ?
As an Amazon Associate we earn from qualifying purchases.
This thread ...
Re: How to list a directory with expect via sftp, (continued)
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.