Everyday I receive 2 files into the above directory /giris/feed/ before 07:00AM. Now I need to write the script in such a way to check whether the files are received in time or not.
If files received in time then message "files received in time" should sent to some log file.
If not received in time(received after 7am) then "files not received in time.Please process the files manually" to the same log time
for e.g.,
Till yesterday(from above list), I have received the files in time and for todays date the files received were late. So if I run the script today , since the files received were late, message should sent to log file stating "files received late"
I am trying to automate the daily monitoring process instead of going to unix terminal everyday, I want the above information in log time to check whether the files were received or not.
Request all to share your thoughts on the above?
This will help me alot....
Thanks in advance...!!
Reagards,
Giris
Last edited by Scott; 12-11-2011 at 08:34 AM..
Reason: Code tags
i have some bar files in a directory
appp1.APP.RTP.DEV1
appp2.APP.RTP.DEV1
appp3.APP.RTP.DEV1
need to be renamed as
appp1.APP.mmk.DEV1
appp2.APP.mmk.DEV1
appp3.APP.mmk.DEV1
i need to rename all files at a time. (6 Replies)
Hi, I'm having the following problem.
I have some files to modify, between a large number of files.
I thought the following code
aux2=`grep -l 2.2.17 *`
print "$aux2"
aux3=`ls -l *.ksh | wc -l`
print "$aux3"
while ; do
print "The counter is $aux3"
#Add the sed here
... (3 Replies)
I know how to find files, which are newer than a specific time.
touch -t 201103300650 dummy
find /path/to/files -type f -newer dummy -exec ls -l {} \;
Is there a way to find files, which are older than a specific time? (2 Replies)
hi friends, m new to unix environment..
i want to know that
"how could we arrange the various files in our unix system according to time at which they are accessed, and are there are ways that we can arrange them in ascending or descending manner..."
please help me out with full details...... (4 Replies)
How to redirect your o/p to many files without using for loop.
For example:-
1-echo "blablabla" > out01 OUT
2-echo "blablabla" 1>out01 1>OUT
3-echo "blablabla" 1>&out01 1>&OUT
the above code does not work!
in "1" only the o/p goes to out01
in "2" & "3" the o/p goes to OUT
... (4 Replies)
Hi all,
I always getting great response from this forum, that why i am putting again....
I am working in a company which is giving ATM support.In one of my production server a lot of files are getting generated every day. I want to move these files to another name.
The file name which is... (4 Replies)
I'm working on a SunOS 5.8 box and I have to search recursively in directories matching a certain pattern for files with a .log extension that have changed within the last n-minutes, and than select the least recently used file and open it for reading, preferrably with tail. Does anyone know how I... (3 Replies)
Im in the process of developing a content based website in which people will be able to upload movies(which are then converted to flv format and displayed in a flash based player.) In order to protect the submitted content I would like to setup an offsite folder for the videos and create... (0 Replies)
how can i remove 10 ".c" files interactively at one time? i am tring to use the rm -i command, but this command only allows me to remove all the files instead of just 10 at a time. i realise that i can list 10 results at a time by using the find and head command concurrently, but how do i use the... (2 Replies)