11-20-2014
Hi Corona688,
Let's say if i am executing the process on 11/20/2014 at 3:00 PM.
On next day (11/21), if i execute the same process on 11:00 AM, it will assume the file is of today (as it is yet to pass 24 hours) and it will come out from the process.
But if you see, the date has been changed. so even if process creates file on 23:58 and next time i run on 00:05, it should continue the process, rather than exiting it.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
An application running on HP-UX constantly generates new text log files ( I think using logpipe ). Any new file created requires to be ftp'ed to an offline server, however I want to make sure that the current file being written should not be transferred.
For examples consider the following files... (3 Replies)
Discussion started by: indianya
3 Replies
2. Shell Programming and Scripting
I need to write a script which has to list all the files which are created before six months from now.
kindly help on this ... (7 Replies)
Discussion started by: amirthraj_12
7 Replies
3. UNIX for Dummies Questions & Answers
hi,
please give me adivse .how to find the folder size with created created date .
eg:
i have directore and in that sub directoties and so on..
/home/mud/abc/dcb/
for this i want output like this
path size date
-------------------------------------------... (3 Replies)
Discussion started by: muddasani
3 Replies
4. Shell Programming and Scripting
hii all.
I have to get the date of the 7th day past from the current date.
if i give the current date as sep 3 then i must get the date as 27th of august.
can we get the values from the "cal" command.
cal | awk '{print $2}' will this type of command work.
actually my need is
if today is... (17 Replies)
Discussion started by: ladtony
17 Replies
5. Shell Programming and Scripting
Hi All,
I want to find the time diffrence between currnt time and "abc.txt" file create time.
I have solve that but if the abc.txt file created last month then is there any process to find the difftent?
Exp:
Create time of abc.txt is "Apr 14 06:48"
and currect date is "May 17 23:47".... (1 Reply)
Discussion started by: priyankak
1 Replies
6. Shell Programming and Scripting
Hi All,
We are copying all the files into ARCHIVE directory after we process them. We are doing this process from last 2 years, now we have a lot of files in ARCHIVE directory.
Now I need to find when the first file is copied into this directory?
If I Issue,
ls -l /ARCHIVE/*.* | tail -1... (3 Replies)
Discussion started by: Raamc
3 Replies
7. AIX
how to find the date on which a particular directory is created?
Thanks. (4 Replies)
Discussion started by: samsungsamsung
4 Replies
8. Shell Programming and Scripting
Hi,
I want to put script. The script is to show file that larger than 100MB include current date (eg: today date).
After find the date, it will compress list file and split the tar.gz file. Any idea how to do that?
This bash script will run auto everyday. It's will transfer will to other... (12 Replies)
Discussion started by: mzainal
12 Replies
9. UNIX for Dummies Questions & Answers
My unix version is IBM AIX Version 6.1
I tried google my requirement and found the below answer,
find . -newermt “2012-06-15 08:13" ! -newermt “2012-06-15 18:20"
But newer command is not working in AIX version 6.1 unix
I have given my requirement below:
Input:
atr files:
... (1 Reply)
Discussion started by: yuvaa27
1 Replies
10. Shell Programming and Scripting
Hi All,
I am new in scripting and working in a project where we have RSyslog servers over CentOS v7 and more than 200 network devices are sending logs to each RSyslog servers. For each network devices individual folders create on the name of the each network devices IP addresses.The main... (7 Replies)
Discussion started by: Pinaki
7 Replies
LEARN ABOUT FREEBSD
setsid
SETSID(2) BSD System Calls Manual SETSID(2)
NAME
setsid -- create session and set process group ID
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
pid_t
setsid(void);
DESCRIPTION
The setsid() system call creates a new session. The calling process is the session leader of the new session, is the process group leader of
a new process group and has no controlling terminal. The calling process is the only process in either the session or the process group.
RETURN VALUES
Upon successful completion, the setsid() system call returns the value of the process group ID of the new process group, which is the same as
the process ID of the calling process. If an error occurs, setsid() returns -1 and the global variable errno is set to indicate the error.
ERRORS
The setsid() system call will fail if:
[EPERM] The calling process is already a process group leader, or the process group ID of a process other than the calling process
matches the process ID of the calling process.
SEE ALSO
setpgid(2), tcgetpgrp(3), tcsetpgrp(3)
STANDARDS
The setsid() system call is expected to be compliant with the ISO/IEC 9945-1:1990 (``POSIX.1'') specification.
BSD
June 4, 1993 BSD