如何知道文件当前是否正由另一个应用程序编写? [英] How to get to know if file is currently being written by another app?
本文介绍了如何知道文件当前是否正由另一个应用程序编写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在后台使用php脚本运行一些远程二进制文件。二进制文件
会创建一些大文件 - 很多文件,它们被写成2
天,一个接一个地写成块。
我输出窗口,我用另一个php
脚本显示这些文件的列表。我必须只展示那些完全完成的人。怎么
我可以这样做吗?
我无法访问二进制文件源。
OS是Solaris。
I run some remote binary with php script in background. The binary
creates some big files - a lot of files, they are being written 2
days, one after another, by chunks.
I output window where I display a list of these files by another php
script. I must show only those of them that are COMPLETELY DONE. How
can I do this?
I don''t have access to binary sources.
OS is Solaris.
推荐答案
al *******@gmail.com pisze:
al*******@gmail.com pisze:
我在后台使用php脚本运行一些远程二进制文件。二进制文件
会创建一些大文件 - 很多文件,它们被写成2
天,一个接一个地写成块。
我输出窗口,我用另一个php
脚本显示这些文件的列表。我必须只展示那些完全完成的人。怎么
我可以这样做吗?
我无法访问二进制文件源。
OS是Solaris。
I run some remote binary with php script in background. The binary
creates some big files - a lot of files, they are being written 2
days, one after another, by chunks.
I output window where I display a list of these files by another php
script. I must show only those of them that are COMPLETELY DONE. How
can I do this?
I don''t have access to binary sources.
OS is Solaris.
lsof | grep
lsof |grep
文件名
filename
z.
它是一些外部工具,没有这样的命令可用
line ...我应该要求管理员安装它Solaris?
it''s some external util, there''s no such available from command
line... should i ask admin to install it on Solaris?
这篇关于如何知道文件当前是否正由另一个应用程序编写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文