How do I get the number of seconds since 1970, within a script, for the previous day at 23:59? I need this value to pass into a sql statement to cleanup records older than the previous day at midnight. It will be automated via cron so no hard coding allowed.
Thanks! (2 Replies)
Hello everybody, how i can get how many lines are writed in a file in the last 5 seconds?
For ezample i have 'file1' that is filled by a process automatically and i neet to know how many lines with the word 'EXACTO' were filled the last 5 seconds, can somebody help me?
I try with:
tail -f... (16 Replies)
It is required to calculate time difference in seconds between epoch time (19700101 00:00:00) and any given date time (e.g. 20010214 14:30:30).
Is there any command in unix to get it? Thanks in adv. (1 Reply)
Hi All
I need to convert a number of fields in a record from seconds to hh:mm:ss ( or possibly hhh:mm:ss ). I'm guessing awk is the way to go .
File has multiple records and each record contains 101 fields - can awk handle that ? The seconds values will be in fields 3 - 101 and could be 0.
... (4 Replies)
Hi,
In my shell script, (as per the requirement), I am creating few files, and the processes are launched parallelly . (by using "&" at the end of the command line). As per the logic, I need to remove these files as well, after creating.
But, the problem is, due to parallel processing,... (3 Replies)
I have file with below data
00:00:00
00:00:00
00:00:00
00:00:01
00:00:01
00:00:01
00:00:01
00:00:01
00:02:01
00:02:01
00:02:01
so on till
23:59:59
I want count of seconds for each hour and minutes
say for 00:00:00 its 3 and 00:00:01 its 5 and 00:02:01 its 3 and so on... (8 Replies)
I would like this to work with seconds as well.
#!/bin/bash
#
if ; then
echo "Incorrect usage ! Example:"
echo './CountDown.sh -d "Jun 10 2011 16:06"'
echo 'or'
echo './CountDown.sh -m 90'
exit 1
fi
now=`date +%s`
if ; then
until=`date -d... (7 Replies)
Discussion started by: drew77
7 Replies
LEARN ABOUT OSF1
sys_attrs_autofs
sys_attrs_autofs(5) File Formats Manual sys_attrs_autofs(5)NAME
sys_attrs_autofs - autofs subsystem attributes
DESCRIPTION
This reference page lists and describes attributes for the AutoFS (autofs) kernel subsystem. Refer to the sys_attrs(5) reference page for
an introduction to the topic of kernel subsystem attributes.
Specifies the duration (in seconds) that a file system is to remain mounted when not in use. This is analogous to the automount com-
mand's -tl option.
Default value: 300 (seconds)
Minimum value: 1
Maximum value: 100000000
Specifies the interval (in seconds) between attempts to unmount file systems that have exceeded their idle_timeout limit. This is
analogous to the automount command's -tw option.
Default value: 60 (seconds)
Minimum value: 1
Maximum value: 100000000
Specifies the duration (in seconds) for which a mount failure is cached, preventing a retry of the mount during this time.
Default value: 30 (seconds)
Minimum value: 0
Maximum value: 100000000
Specifies the maximum amount of time (in seconds) a process waits for an auto-mounted file system or subtree to become available.
Default value: 120 (seconds)
Minimum value: 1
Maximum value: 100000000
Specifies the amount of time (in seconds) the autofsd daemon waites for an individual NFS server to respond to a mount request.
Default value: 30 (seconds)
Minimum value: 0
Maximum value: 100000000
Specifies the size of the AutoFS hash table used to find all AutoFS directories and symlinks system-wide. The size is calculated at
boot time based upon the value of max_vnodes.
Default value: 32 (lists)
Minimum value: 32
Maximum value: 8192
SEE ALSO sys_attrs(5)
System Configuration and Tuning
sys_attrs_autofs(5)