- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- detecting success or failure of ftp automatically
Operating System - HP-UX
1753809
Members
7590
Online
108805
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
05-11-2001 03:37 AM
05-11-2001 03:37 AM
detecting success or failure of ftp automatically
Hi,
I have an ftp process running from a shell script. It is something like this:
{
for host in nemail
do
echo "
open $host
user joe joepass
lcd /archive/dbeirne/admin/testdir1/
ascii
mput p*
close
"
done
} | ftp -i -n
I want to be alerted if the ftp fails for any reason, ie. cannot connected to the host, the username or password is incorrect, etc. I have tried using the standard $? variable, but this shows success even if the ftp fails. Is there a simple way of checking for failures of this type of script, and running a command like sending a page or whatever.
I know that I can grep through it's logfile for errors, but this is cumbersome as it's logfile is being appended to and is quite large, and contains some historic errors.
Thanks in advance.
Dermot.
I have an ftp process running from a shell script. It is something like this:
{
for host in nemail
do
echo "
open $host
user joe joepass
lcd /archive/dbeirne/admin/testdir1/
ascii
mput p*
close
"
done
} | ftp -i -n
I want to be alerted if the ftp fails for any reason, ie. cannot connected to the host, the username or password is incorrect, etc. I have tried using the standard $? variable, but this shows success even if the ftp fails. Is there a simple way of checking for failures of this type of script, and running a command like sending a page or whatever.
I know that I can grep through it's logfile for errors, but this is cumbersome as it's logfile is being appended to and is quite large, and contains some historic errors.
Thanks in advance.
Dermot.
Happy is harder than money. Anyone who thinks money will make them happy, doesn't have money.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2001 03:38 AM
05-11-2001 03:38 AM
Re: detecting success or failure of ftp automatically
Sorry, I did not mean to post this in the database section of the forum.
Apologies, please ignore it!
Regards,
Dermot
Apologies, please ignore it!
Regards,
Dermot
Happy is harder than money. Anyone who thinks money will make them happy, doesn't have money.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP