Is there a way to see how often a file is being updated?
I mean I need to see if the modification time of a file is updated in a dynamic way (same as tail
shows if the file is updated in a dynamic way).
I can not use e.g. tail
since the contents of the file are not appended, but overwritten and could be overwriten with the same value so I can not make a concusion.
Jim's questions
How does the /dev/watchdog
timer exactly work? I found a description here and it says that once I open the file from an application I need to
update it every 10 seconds. I was wondering is this a hard limit? For example what if I update it in 11 seconds for instance?
Could someone explain the behavior to me please?
Because there are no "hard limits" in the thread scheduling so that I am certain that the file is updated in exactly 10 sec. stricty unless I use e.g. a spin loop instead of a sleep
Is it possible to change owner/group of a file AND permissions with 1 command?
I tried:
chmod user1:groupOfUser1=770 file.txt
but it does not work.
I have a Tomcat server that listens in 8080(http), 443(https), 7443(https). Note that the connectors for 443 and 7443 use different certificates.
I am interested in using httpd
for load balancing.
Is it possible to configure httd
so that it simply forwards the requests to Tomcat without needing to install any certificate to httpd
itself. I.e. not act as a proxy but as forwarder?
So the SSL end to end is handled by Tomcat.
I deliver an application via an RPM.
This application delivers various directories and files.
E.g. under /opt/internal/com
a file structure is being copied.
I was expecting that on rpm -e
all the file structure delivered under /opt/internal/com
will be removed.
But it does not.
There are directories in the file structure that are non-empty.
Is this the reason? But these (non-empty) directories were created by the RPM installation. So I would expect that they would be "owned" by RPM and removed automatically.
Is this wrong? Am I supposed to remove them manually?
I have Tomcat and I am trying to bind to 2 specific ports (using custom connectors). E.g. port A
and port B
.
Problem:
When I do netstat -a |grep A
I do NOT see the port listed.
If I do netstat -antp
I see both ports A
and B
listed.
What is the difference between the commands?
I use the following command to create a user in a linux machine:
useradd -d /home/dummy -g idiots -m -p 12345689 dummy
The user is created and the home directory as well.
The problem is that I can not log-in to the system using this account since the -p
expects the encrypted password returned by crypto
.
Question:I want to create a user via a bash script and I don't know the encrypted password by crypto
. How can I do it so that I am able to create this user automatically via a script and get arround the problem with the password?