10-03-2007
If the file was changed, so was the timestamp on the file. But I wasn't looking for simply a timestamp. I mean, for example, does it change on reboot? Does it change once a day? Are you stopping and restarting the service, and if so does that change it? Etc.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a problem I don't understand... I am trying to declare a variable, and then output the results of that variable, couldn't be simpler
#!/bin/ksh
VAR='Oranges'
if
then
echo "Found Lemons"
elif
then
echo "Found Oranges"
fi
The output shouold clearly be "Found Oranges", but... (2 Replies)
Discussion started by: danhodges99
2 Replies
2. UNIX for Advanced & Expert Users
I have a few files on my system named:
-rw-------
-rw-r-----
-rw-rw--w-
-rwxrw-r-x
(Yes, it's really the name of the file, not the access permissions, they're 0 bytes large and all created at the same date/time).
I've no idea how they got there but I don't seem to be able to delete them... (2 Replies)
Discussion started by: rein
2 Replies
3. Shell Programming and Scripting
I am trying to find the difference in days between 2 dates.
I have to extract the 1st date from a filename, which i did using the awk command.
I have to compare this date to today's date and if the difference is greater than 30 days, do something, else do something else.
This is what i wrote... (22 Replies)
Discussion started by: meeraKh
22 Replies
4. HP-UX
Hello all,
Normally I'm pretty comfortable with crontab, changing and updating (done it many-a-time).
But in the last two days I've been pulling my hair out over the following...
Details of OS:
HP-UX mdirect B.11.23 U ia64 2587410573 unlimited-user license
Issue:
Execute a script (very... (3 Replies)
Discussion started by: Cameron
3 Replies
5. Shell Programming and Scripting
Hello here's the first line's of the code
that works perfect on command line
but not as a crontab job ???
crontab:
15 * * * * /root/scripts/checkclamd_mem.shscript:
#!/bin/bash
# Checks Memory of the Clamav-daemon and it's .pid file
# restarts if over the LIMIT. Starts if pid file not... (3 Replies)
Discussion started by: nls mchn
3 Replies
6. UNIX for Advanced & Expert Users
Hi,
I've Ubuntu 8.04, and it has some files that I just cannot delete. I've tried everything, inode, fsck etc.
Here is what the ls -li outputs
root@ubuntu:/home/luser/.local/share/Trash/files/junk# ls -l
ls: cannot access TRUNK_: No such file or directory
ls: cannot access 2006_output.mv:... (11 Replies)
Discussion started by: nitin
11 Replies
7. Infrastructure Monitoring
Hi,
I want to install net-snmp-devel package but i have following dependecy problem.
It's very odd, i don't get it. One of packages is depended on the other one, the other one is depended on the previous one as well. :S :S
Could you help me please?
Here are the steps:
# ls -l
total... (4 Replies)
Discussion started by: oduth
4 Replies
8. Shell Programming and Scripting
awk 'BEGIN{print 1.2.3.4}'
1.20.30.4
Can anyone explain why has extra "0" in the IP address? (3 Replies)
Discussion started by: newoz
3 Replies
9. Shell Programming and Scripting
I am using Korn shell on Linux 2.6x platform , and I am suing the following code to capture the lines which contain CONTROL CHARACTERS in my file :
awk '/]/ {print NR}' EROLLMENT_INPUT.txt
The problem is that this code shows the file has control characters when the file is in folder A ,... (2 Replies)
Discussion started by: kumarjt
2 Replies
10. Shell Programming and Scripting
Hi,
I have a simple awk script:
BEGIN{}
{
$a=$2-$1;
print $a
}
END{if(NR==0){
print "0"
}
}
to which I provide the following input
2.9 14
22.2 27 (4 Replies)
Discussion started by: jamie_123
4 Replies
LEARN ABOUT SUNOS
nis_checkpoint
nis_ping(3NSL) Networking Services Library Functions nis_ping(3NSL)
NAME
nis_ping, nis_checkpoint - NIS+ log administration functions
SYNOPSIS
cc [ flag ... ] file ... -lnsl [ library ... ]
#include <rpcsvc/nis.h>
void nis_ping(nis_name dirname, uint32_t utime, nis_object *dirobj);
nis_result *nis_checkpoint(nis_name dirname);
DESCRIPTION
nis_ping() is called by the master server for a directory when a change has occurred within that directory. The parameter dirname identi-
fies the directory with the change. If the parameter dirobj is NULL, this function looks up the directory object for dirname and uses
the list of replicas it contains. The parameter utime contains the timestamp of the last change made to the directory. This timestamp is
used by the replicas when retrieving updates made to the directory.
The effect of calling nis_ping() is to schedule an update on the replica. A short time after a ping is received, typically about two min-
utes, the replica compares the last update time for its databases to the timestamp sent by the ping. If the ping timestamp is later, the
replica establishes a connection with the master server and request all changes from the log that occurred after the last update that it
had recorded in its local log.
nis_checkpoint() is used to force the service to checkpoint information that has been entered in the log but has not been checkpointed to
disk. When called, this function checkpoints the database for each table in the directory, the database containing the directory and the
transaction log. Care should be used in calling this function since directories that have seen a lot of changes may take several minutes to
checkpoint. During the checkpointing process, the service will be unavailable for updates for all directories that are served by this
machine as master.
nis_checkpoint() returns a pointer to a nis_result structure. See nis_tables(3NSL). This structure should be freed with nis_freeresult().
See nis_names(3NSL). The only items of interest in the returned result are the status value and the statistics.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
nislog(1M), nis_names(3NSL), nis_tables(3NSL), nisfiles(4), attributes(5)
NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are
available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
SunOS 5.10 18 Dec 2001 nis_ping(3NSL)