- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: error ftp shell script automatic
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
02-20-2008 05:17 AM
02-20-2008 05:17 AM
error ftp shell script automatic
syntax error: unexpected end of file
if [ -s test ]
then
ftp -n -i $SRV <<-EOF
quote USER $ADM
quote PASS $PWD
bin
mput test
quit
EOF
else
exit
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2008 05:57 AM
02-20-2008 05:57 AM
Re: error ftp shell script automatic
If you have a blanks character and not a tab character before your EOF you will receive a syntax error: "`<<' is not matched".
ALSO, using a file named 'test' is not a good practice.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2008 06:37 AM
02-20-2008 06:37 AM
Re: error ftp shell script automatic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2008 06:45 AM
02-20-2008 06:45 AM
Re: error ftp shell script automatic
if [ -s $CARP/FC ]
then
ftp -n -i $SRV<
quote PASS $PWD
bin
lcd $CARP
mput FC
quit
EOF
else
exit
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2008 06:57 AM
02-20-2008 06:57 AM
Re: error ftp shell script automatic
use PWRD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2008 08:49 AM
02-20-2008 08:49 AM
Re: error ftp shell script automatic
ine 4 syntax error: unexpected end of file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2008 09:33 AM
02-20-2008 09:33 AM
Re: error ftp shell script automatic
be very careful of spaces / tabs
if [ -s fsm.data ]
then
ftp -v -n -i $SVR <
quote PASS ${PASSW}
ls
quit
EOF
else
echo in else
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2008 09:44 AM
02-20-2008 09:44 AM
Re: error ftp shell script automatic
then you will have an exact trace of what is executed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2008 10:05 AM
02-20-2008 10:05 AM
Re: error ftp shell script automatic
<< doesn't strip
<<- strips