Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* How to lock file from shell?
@ 1999-03-02  5:00 Nikola Milutinovic
  1999-03-02  5:00 ` Ken Pizzini
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Nikola Milutinovic @ 1999-03-02  5:00 UTC (permalink / raw)


Hi all.

Here is what I would like to do. I'm gonna create several account for in-bound
FTP. User with USER/PASS for those account will be able to leave files on those
account via FTP.

Then I'll create one "pick-up" account. User with that USER/PASS will pick up
files. There will be a cron job, which will transfer files from "in-bound"
accounts to the "pick-up" account.

Well, my problem is: how to detect that the file has been transferred?

The idea of testing a lock on the file, looked promissing, but I have to do it
from a shell script (zsh). "cp" doesn't care if the file is under a
lock/writing. I wouldn't want to implement any kind of "heuristic behavior" - IF
filesize unchanged for past 15 min THEN copy.

Any ideas?

TYIA,
Nix.
-- 
No flames, send money instead.



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1999-03-04  5:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-02  5:00 How to lock file from shell? Nikola Milutinovic
1999-03-02  5:00 ` Ken Pizzini
1999-03-03  5:00   ` Nikola Milutinovic
1999-03-02  5:00 ` Yvonne & Oliver Maag
1999-03-03  5:00   ` Nikola Milutinovic
1999-03-02  5:00 ` Joe Durusau
1999-03-03  5:00   ` Nikola Milutinovic
1999-03-03  5:00     ` Joe Durusau
1999-03-04  5:00 ` Lars Hecking

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox