1
vote
1answer
86 views

Prevent active file removal on an NFS filesystem

I clear my logs using following script - find "." -mtime 1 -type f -print0 | xargs -0 rm -rf But it deletes the active files also and creates .nfsā€¦ files instead. Is there any way to prevent ...
7
votes
2answers
4k views

See the STDOUT redirect of a running process

If I start an app with this command: /path/to/my/command >> /var/log/command.log And the command doesn't return, is there a way, from another prompt, to see what the STDOUT redirect is set ...
5
votes
2answers
2k views

How do I tell a script to wait for a process to start accepting requests on a port?

I need a command that will wait for a process to start accepting requests on a specific port. Is there something in linux that does that? while (checkAlive -host localhost -port 13000 == false) ...