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
01-21-2004 04:02 PM
01-21-2004 04:02 PM
errors
can anyone plz let me know how to handle the error for the following command.
ftp -n <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 04:32 PM
01-21-2004 04:32 PM
Re: errors
ftp -n << EOF
open xxxxxxxxxxx
user name passwd
cd /xxx/yyyy
ascii
get filename
quit
EOF
And execute with
#sh a.sh > out
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 04:51 PM
01-21-2004 04:51 PM
Re: errors
what ever you sent is fine and working .Thanks for giving the solution.but i want to know how to catch in side the script b'cause i am using that command 4 times in my script,based on erros i have to do the remainig connection.as per above model it leads to write many scripts.plz let me know any method to handle erros inside the script itself.
THANKS A LOT FOR GIVING THE SOLUTION
HARI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 05:39 PM
01-21-2004 05:39 PM
Re: errors
If you want you can check with if as given below:
if test -f out
then
echo "error"
else
echo "no error"
fi
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 05:59 PM
01-21-2004 05:59 PM
Re: errors
thanks for your help.i got the answer.it is
ftp -n << ! > logfile
--
---
--
bye
!
then errors are in log file.
THANKS
HARI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 06:13 PM
01-21-2004 06:13 PM
Re: errors
Regards,
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2004 05:21 AM
01-23-2004 05:21 AM
Re: errors
you still can take no action within the ftp script. I don't think, that's possible.
Michael