Computing.Net > Forums > Unix > ftp in korn shell

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ftp in korn shell

Reply to Message Icon

Name: chak karri
Date: June 9, 2003 at 09:33:40 Pacific
OS: hp unix
CPU/Ram: p3
Comment:

Hello,
I am trying to copy files from machine to another and when I runthe following script I get the error "Syntax error at line 152 : ` tempfile
!cat tempfile
mput cobaex??.txt
bye
ENDFTP;;
...
...
esac
fi

esac
fi

Thanks
Chak



Sponsored Link
Ads by Google

Response Number 1
Name: WilliamRobertson
Date: June 9, 2003 at 11:04:15 Pacific
Reply:

Looks like the HTML on this board has swallowed the less-than signs.

Try:

ftp ftp.pwp.blueyonder.co.uk <<-ENDFTP
ascii
get index.html
bye
ENDFTP

(You can post &lt; in place of the less-than symbol, but the Preview screen replaces it with so you you either have to paste it in again after previewing, or else use &amp;lt; in the original post, if I've got that right...)


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: ftp in korn shell

using ftp in Korn Shell www.computing.net/answers/unix/using-ftp-in-korn-shell/4148.html

mkdir in korn shell cgi script www.computing.net/answers/unix/mkdir-in-korn-shell-cgi-script/5347.html

Cursor handled in korn shell. www.computing.net/answers/unix/cursor-handled-in-korn-shell/5799.html