无法将管道更改为普通文件(Unable to change a pipe to be a normal file)
我有以下文件(上图),它似乎是Unix管道替代文本http://dl.getdropbox.com/u/175564/problemFile.png
你如何使管道成为默认的文本文件 ?
I have the following file (above) which seems to be an Unix pipe alt text http://dl.getdropbox.com/u/175564/problemFile.png
How can you make the pipe a default text file?
最满意答案
除非还有其他一些尚未提及的复杂因素,否则最简单的方法就是使用大锤子:
$ rm outside $ touch outside如果当前正在使用该文件的进程,则需要首先终止该进程,然后重新启动该进程以使用该新文件。 否则,管道将保持打开状态,但不可见,直到过程最终死亡。
Unless there is some other complication that hasn't been mentioned, the easiest is to use the big hammer:
$ rm outside $ touch outsideIf there is a process currently using the file, you will need to kill the process first, then restart it so it uses the new file. Otherwise, the pipe will stay open but invisible until the process finally dies.
更多推荐
发布评论