09-11-2013
We get asked this question very, very frequently.
Bottom line, it's the sending thing's job to tell you when it's done, because the receiver can't tell the difference between a
finished upload, a
stalled upload, or an
aborted upload -- all three will have a file sitting there unchanged for long periods of time.
One of the best ways for the uploader to inform you of a completed upload is:
- Upload the file to /path/to/temporary/file
- In the same FTP session, rename /path/to/temporary/file /path/to/destination/file
As long as /path/to/temporary/ and /path/to/destination/ are on the same partition, this guarantees that files always appear in /path/to/destination/ whole, never partial files or in-progress uploads.
Last edited by Corona688; 09-11-2013 at 06:51 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'ld like to enable file name completion in ksh88 on AIX 5.2. My terminal is set to xterm. I've set the shell editor to emacs and ampped the arrow keys. Is there a way to map the tab key to a command like ESC= or any other file name completion command in emacvs that I may be not aware of since I'm... (1 Reply)
Discussion started by: rein
1 Replies
2. Shell Programming and Scripting
Hi,
I would like to copy a file from one location to another. But that particular file is not fully loaded. I like to copy a file once it's fully loaded or complete file. How to ensure whether file is fully loaded or complete file?.
-Thambi (5 Replies)
Discussion started by: thambi
5 Replies
3. Shell Programming and Scripting
Hello,
I am sure a lot of you have come across this situation, and I want to know how you have or would handle this situation:
- A file gets ftp'ed (import) regularly to a directory into our environment. Is there a way to check whether this file has completed ftp'ing.
* I don't want my... (1 Reply)
Discussion started by: ChicagoBlues
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
OS - Unix
Iam doing the following:
after login to the unix box
1. change directory
2. run a shell script "preinstall.sh"
3. This takes apprx 5 mins
4. after which i use to change permission of a file "installhub.sh" (this file is generated from the previous step).
Is there anyway... (2 Replies)
Discussion started by: kenkanya
2 Replies
5. UNIX for Advanced & Expert Users
Hi,
Im doing a project to check the latest time with the word 'processed' in a logfile. the time range is within 2 hours before the curent datetime to present.
For example:
Current datetime is 'October 6 2009 8:00AM' --- HKT
So the time range that need to check is from 'October 6... (1 Reply)
Discussion started by: romanne
1 Replies
6. Shell Programming and Scripting
Hi All,
I am using SunOS 5.8 verison with KSH shell. My problem is I am not getting auto completion of file name on pressing of TAB or ESC key.
While pressing ESC key , '^[' is getting printed .
TAB is printing doin nothin but jus printing tab.
What should I do to get auto completion of... (3 Replies)
Discussion started by: Sooraj_Linux
3 Replies
7. Shell Programming and Scripting
Hi All,
I am using SunOS 5.8 verison with KSH shell. My problem is I am not getting auto completion of file name on pressing of TAB or ESC key.
While pressing ESC key , '^[' is getting printed .
TAB is printing doin nothin but jus printing tab.
What should I do to get auto completion of... (2 Replies)
Discussion started by: Sooraj_Linux
2 Replies
8. UNIX for Dummies Questions & Answers
Dear all,
I had a columned based file after processed from my script. In unix platform, my file is ok, with all columns sorted out nicely. But when i open in windows notepad, the columns are running out of order. Can some one help??
Thanks alot in advance (4 Replies)
Discussion started by: ymeyaw
4 Replies
9. Shell Programming and Scripting
Hi,
A script is running for multiple databases so data is also being populated for multiple DBs in a.txt file.
I need to rename this file once all the data is populated. Kindly suggest me How can I check once file is populated completely before renaming?
Thanks in advance. (3 Replies)
Discussion started by: ravigupta2u
3 Replies
10. Shell Programming and Scripting
I've a list of files which got processed in Target table A and stored in a control file(list of control files).
I've want to trigger another process (later) based on this list of files and load into Target table B and continue running this process until this file list is exhuasted.
How do I come... (1 Reply)
Discussion started by: manojg9
1 Replies
LEARN ABOUT DEBIAN
check_gearman
CHECK_GEARMAN(8) System Administration Utilities CHECK_GEARMAN(8)
NAME
check_gearman - Nagios service check to monitor the gearman job server
DESCRIPTION
usage:
check_gearman [ -H=<hostname>[:port] ]
[ -t=<timeout>
]
[ -w=<jobs warning level>
] default: 10
[ -c=<jobs critical level>
] default: 100
[ -W=<worker warning level>
] default: 25
[ -C=<worker critical level>
] default: 50
[ -q=<queue>
]
to send a test job:
[ -u=<unique job id>
] default: check
[ -s=<send text>
]
[ -e=<expect text>
]
[ -a send async ] will ignore -e
[ -h print help ]
[ -v verbose output ]
[ -V print version ]
- You may set thresholds to 0 to disable them. - Thresholds are only for server checks, worker checks are availability only
perfdata format when checking job server:
|'queue waiting'=current waiting jobs;warn;crit;0 'queue running'=current running jobs 'queue worker'=current num worker;warn;crit;0
Note: set your pnp RRD_STORAGE_TYPE to MULTIPLE to support changeing numbers of queues.
see http://docs.pnp4nagios.org/de/pnp-0.6/tpl_custom for detailed information
perfdata format when checking mod gearman worker:
|worker=10 jobs=1508c
Note: Job thresholds are per queue not totals.
EXAMPLES
Check job server:
%>./check_gearman -H localhost -q host check_gearman OK - 0 jobs running and 0 jobs waiting. Version: 0.14|'host_waiting'=0;10;15;0
'host_running'=0 'host_worker'=3;5;10;0
Check worker:
%> ./check_gearman -H <job server hostname> -q worker_<worker hostname> -t 10 -s check check_gearman OK - host has 5 worker and is working
on 0 jobs|worker=5 jobs=96132c
SEE ALSO
The Mod Gearman documentation is available in /usr/share/doc/mod-gearman/README.html
check_gearman 1.3.6-1 July 2012 CHECK_GEARMAN(8)