- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftp status
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-12-2002 08:06 AM
11-12-2002 08:06 AM
ftp status
I have a script which ftp some big file from the system. My script would then use this ouput file it just ftped to execute another command, say, "awk".
My problem:
as awk picks up, the ftp is done executed but the file is NOT done being transfered. so my awk reads in incomplete information because the, say, "ftp.out" file is not finished being transfered.
Question:
Is there anyway that I can halt awk from being executed until the ftp.out file is completely transfered so that it reads in complete information. may be keep track of the size of ftp.out, or reply codes from ftp, or something.
Please, advise.
Thank you all very much.
PS: the ftp uses a .netrc file which i don't completely understand:
~~~~~~~~~~~ .netrc
machine MACHINE login USER password SOME_PSWD
macdef init
site file=jes <<--- not sure what this is
supposed to do
put &HOME/transfer.jcl <<<--- also this???
quit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2002 08:12 AM
11-12-2002 08:12 AM
Re: ftp status
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2002 08:26 AM
11-12-2002 08:26 AM
Re: ftp status
if [[ -n $(fuser FILENAME 2>/dev/null) ]];
then
fi
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2002 09:02 AM
11-12-2002 09:02 AM
Re: ftp status
Thanks for replying quick.
I still have some problem, thou.
I tried to use the 0-byte .done way, but does that mean that I have to interfere with the .netrc file? This is what i did, would you check my steps:
In the .netrc, I "put .done" in the remote directory, and then "get .done" after BigFILE is transferred, and in my script I check for .done.
But it kept saying it can't recognize the "site file=transfer.jcl" line. It doesn't do this before.
Sleep would work, but this script needs to work for different files. So, when the size of my BigFILE changes, then I have to wait for a long time in case the BigFILE is shorter, and it might not be Enough time when BigFILE is bigger.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2002 09:05 AM
11-13-2002 09:05 AM
Re: ftp status
put file.tmp
rename file.tmp file.out
This would also fix your problem of awk starting to soon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2002 11:00 AM
11-13-2002 11:00 AM
Re: ftp status
fuser would show now user of the file even if the ftp session aborted for some reason.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 01:44 PM
11-15-2002 01:44 PM
Re: ftp status
I ran into another problem. So I have to wait until they decided what to do. then I can try out your ideas. I'm sure they would work.
I don't want to just disappear, so ...
Thank you all very much. I'd let you know when i got some results.
Again, thank you very much.
Best regards,
Leann