× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi ,

We are using PASE environment to upload some files to an external secure
ftp server over SSH.
Our server is V6R1

We are using the example from Scott with the expect tool.

The script is pretty simple and it does work fine on many other IBM i
server.

We load variables with ADDENVVAR and call QP2TERM

Call QP2Shell Parm('/QOpenSys/bin/sh' '-c' &Parm3) ... and we have the
following error. (I also try the command interactivly... same error)



spawn sftp MyUser@xxxxxxxxxxxxxxxxxxxxxxxxx
Could not load program sftp:
Symbol resolution failed for sftp because:
Symbol __pthread (number 93) is not exported from dependent
module /usr/lib/libpthreads.a(shr_xpg5.o).
Examine .loader section symbols with the 'dump -Tv' command.



Licence programs 5733SC1 *Base and Option 1 are installed. (I also try to
reinstall then, but I still have the same error)


5733SC1 *BASE IBM Portable Utilities for i5/OS
5733SC1 1 OpenSSH, OpenSSL, zlib

Does someone know what this error means?
I did some search on google but many unresolved post.

I know I little bit how Pase work, but I'm not familiar with.


Thanks for your help.

Karl

**********************************
Here's what my "Put" script looks like.

#!/bin/sh



build_script() {



cat <<End-of-message

#!/usr/local/bin/expect -f

spawn sftp ${USER}@${SFTPHOST}

expect "connecting (yes/no)?" { send "yes\n"; expect "Password:" }
"Password:"
send "${PASSWORD}\n"

expect "sftp>"

send "put ${FROMFILE} ${TOFILE} \n"

expect "sftp>"

send "quit\n"

exit

End-of-message



}

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.