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
Discussions
Discussions
Forums
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
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
тАО06-18-2001 08:04 AM
тАО06-18-2001 08:04 AM
ftp
please excuse my english.
We are using an ftp-script to put files from hpux box to windows NT.
Does someone have an idea how to terminate the session (bye/quit) after inactivity time set with idle, perhaps using status ??
Thanks,
Nora
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 08:11 AM
тАО06-18-2001 08:11 AM
Re: ftp
ftp -n << EOF
verbose
open thehost
user uuu ppp
get /tmp/stuff
close
EOF
I think close
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 08:14 AM
тАО06-18-2001 08:14 AM
Re: ftp
You can add a timeout option (-t
For example, to chnge the timeout to 5-minutes change the 'ftp' entry to look something like this in /etc/inetd/conf:
# ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -t 5
To enable the change, do this:
# /usr/sbin/inetd -c
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 08:29 AM
тАО06-18-2001 08:29 AM
Re: ftp
my question is : how to terminate the script if there is a problem before the close or bye or quit.
We receive : exiting on signal 14 but the session is still here without any connection.
Precison : the ftp-script is enclosed in another script which execute a lot of things, so if the ftp session is not terminated, the script can not continue.
Thanks,
Nora
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 08:34 AM
тАО06-18-2001 08:34 AM
Re: ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 08:39 AM
тАО06-18-2001 08:39 AM
Re: ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 09:06 AM
тАО06-18-2001 09:06 AM
Re: ftp
Nora
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 09:22 AM
тАО06-18-2001 09:22 AM
Re: ftp
The following will automatically quit
------------------cut here-------------------
# Send the files to the new server
ftp -n 172.20.20.17 <
prompt
binary
mput *.BI
put REFRESH.FLG
quit
End_of_Ftp
------------------cut here-------------------
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 10:13 AM
тАО06-18-2001 10:13 AM
Re: ftp
I have just re-read your question.
Instead of putting fixes into scripts, investigate the reason for the "exiting on signal 14". Ntework problems ? server / network timeouts?
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2001 10:19 AM
тАО06-18-2001 10:19 AM
Re: ftp
Should we assume that your script that calls the ftp has to wait for the ftp session to finish before proceding, perhaps logging the success/failure of the session? If so, then I would think that James' solution should fix, as the session should time out waiting for activity.
If the script doesn't need to wait for the ftp session, then couldn't that portion be backgrounded while the rest continues? You probably already thought of that, though...