|
From : build_script | /home/palhc/expectScript/expect.5.43.tar -f -To : build_script | /home/palhc/expectScript/usr/local/bin/expect -f -
Hello,That
A tar file is an archive file. It's like a SAVF. Or a ZIP file.
sort of thing. You can't *run* a tar file.
You need to unpack/install the contents of the TAR file. i.e. restore
the contents of the archive. Then, you can run the stuff that wasscript to
inside it.
hockchai Lim wrote:
I'm having some problem executing a shell script that uses Expect
me withdo sftp by user ID and password and hope that someone here can help
0403-006it. When I execute the script I get the following error:
/home/palhc/sftp819.sh: /home/palhc/expectScript/expect.5.43.tar:
Execute permission denied.
Here is what I did:
1) Installed the OpenSSH.
2) Download Expect tool from http://www.scottklement.com/expect/ and
uncompress.
3) Create a script that looks like this:
http://code.midrange.com/d585dbe59e.html
4) My CL to execute the script looks like this:
http://code.midrange.com/78ef308dcc.html
thanks
As an Amazon Associate we earn from qualifying purchases.
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.