- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp in shell script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2002 08:21 AM
11-18-2002 08:21 AM
http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xc7b7d5fab40ed6118ff40090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc88106295e00d6118ff40090279cd0f9,00.html
that gave me some good examples. Here is my code:
ftp -nidv ${FTPIP} <
cd ${REMOTEDIR}
lcd ${LOCDIR}
ascii
${FTPCMD1} ${FTPFILEA1} ${FTPFILEB1}
close
bye
EndFTP
Without the <
ftp_exec.ksh[14]: Syntax error at line 16 : `<<' is
not matched.
I'm trying to work my way into Unix from a IBM Mainframe envrionment (or Legacy as it is referenced!!) Any help is appreciated... Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2002 08:23 AM
11-18-2002 08:23 AM
Solutionftp -nidb 192.192.192.192 << EOF
command
command
command
EOF
Also make sure the your ending EndFTP is not indented at all. It MUST start at column 1 on the line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2002 08:27 AM
11-18-2002 08:27 AM
Re: ftp in shell script
The 'EndFTP' must not have leading spaces or tabs.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2002 08:31 AM
11-18-2002 08:31 AM
Re: ftp in shell script
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2002 08:51 AM
11-18-2002 08:51 AM
Re: ftp in shell script
All get 10 points (see us mainframe guys aren't so bad!) :)
The code was embedded in a function and there was a space in front of the EndFTP. I removed the space and it works!!
Thanks again!