08-13-2018
Script to find directory is getting files in every 10 mins, if not then when last time file received
Dears,
I am looking for a script which will work as a watch directory.
I ha directory which keep getting files in every 10 mins and some time delay.
I want to monitor if the directory getting the files in every 10 mins if not captured the last received file time and calculate the delay.
Regards,
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Is there a way of looking at the last file received and checking whether it is more than 24 hours old?
E.g.
/Archive/Files/h/h0012345.dat
I need to look in a directory, get the date of the processed file and make sure it wasn't more than a day ago. If it is more than 1 day ago I need... (9 Replies)
Discussion started by: rebootman
9 Replies
2. Shell Programming and Scripting
Hi everyone,
Please help:)
I have a list of 1000 different files which comes daily to the directory.Some of
the files are not coming to the directory now.
I need to write a shell script to find the latest date and time of the files they
came to the directory. The files should be unique.... (1 Reply)
Discussion started by: karthicss
1 Replies
3. UNIX for Dummies Questions & Answers
hi,
I need to find all the modified files before 60 minutes in a folder.
Is that possible to find using mtime in minutes?
Suggestions please.
Thanks for looking into it...
Geetha (8 Replies)
Discussion started by: iamgeethuj
8 Replies
4. Shell Programming and Scripting
Hi All,
I would like to write a script which will search a file say abc.dat in /a/b/data for 15 mins only. If the script finds the file in 15 mins then it will exit will exit sucessfully and if there is no file for 15 mins it will exit and copy the last day file (abc.dat_ddmmyyhhmmss) from... (1 Reply)
Discussion started by: chandancsc
1 Replies
5. Shell Programming and Scripting
Script must removes files from the first directory if there is a file with same name in the second directory
Script passed to the two directories, it lies with them in one directory:
sh script_name dir1 dir2
This is my version, but it does not work :wall:
set - $2/*
for i
do
set -... (6 Replies)
Discussion started by: SLAMUL
6 Replies
6. Shell Programming and Scripting
i have below list of files in a directory.
/root/admin/files/file1.txt
/root/admin/files/file2.txt
/root/admin/files/file3.txt
/root/admin/files/pattern.txt
/root/admin/files/server.txt
i need combine the above text files in the below sequence,
file1.txt, pattern.txt,server.txt =>... (8 Replies)
Discussion started by: vel4ever
8 Replies
7. Shell Programming and Scripting
Hi all
This is my first post. Please bear with me with all my mistakes. I started learning shell since couple of days now and this might be quite basic for all, i want to search for files in a directory containing specific string and replace it with new string. The code i wrote is quite bulky... (2 Replies)
Discussion started by: theprogrammer
2 Replies
8. Shell Programming and Scripting
Hey everyone,
I need to select all files that were added to a specific directory in the past 5 mins and copy them over to a different directory. I am using HP-UX OS which does not have support for amin, cmin, and mmin. B/c of this, I am creating a temp file and will use the find -newer command... (7 Replies)
Discussion started by: mattkoz
7 Replies
9. Shell Programming and Scripting
Hi,
i need help on shell scripting.
Main intention of the script is
step 1: ssh to remote server
Step 2: cd /tmp in remote server
Step 3: in tmp i want to grep only files and directories which are in GB sizes
All the servers list file is - tmpsrv.txt
vi tmpsrv.txt
... (17 Replies)
Discussion started by: kumar85shiv
17 Replies
10. UNIX for Beginners Questions & Answers
A process xyz is running and creating file1, file2, file3, .... filen. how do i know if the process has stopped and createtime of the last file (filen) is older than 5 minutes?
OS is AIX (3 Replies)
Discussion started by: malaika
3 Replies
LEARN ABOUT DEBIAN
audio::mpd::common::time
Audio::MPD::Common::Time(3pm) User Contributed Perl Documentation Audio::MPD::Common::Time(3pm)
NAME
Audio::MPD::Common::Time - class representing time of current song
VERSION
version 1.120881
DESCRIPTION
Audio::MPD::Common::Status returns some time information with the "time()" accessor. This information relates to the elapsed time of the
current song, as well as the remaining and total time. This information is encapsulated in an Audio::MPD::Common::Time object.
An Audio::MPD::Common::Time object does not update itself regularly, and thus should be used immediately.
Note: one should never ever instantiate an Audio::MPD::Common::Time object directly - use the mpd modules instead.
ATTRIBUTES
$time->time;
The time passed to the constructor, used to compute all others values (see methods). It is the time value (on the "time" line) of what the
MPD server returns to the status command. Defaults to "0:0".
METHODS
my $str = $time->sofar;
Return elapsed $time ("minutes:seconds" format).
my $str = $time->left;
Return remaining $time ("minutes:seconds" format).
my $str = $time->left;
Return total $time ("minutes:seconds" format).
my $percent = $time->percent;
Return elapsed $time (percentage, 1 digit).
my $secs = $time->seconds_sofar;
Return elapsed $time in seconds.
my $secs = $time->seconds_left;
Return remaining $time in seconds.
my $secs = $time->seconds_total;
Return total $time in seconds.
my $mins = $time->sofar_mins;
Return minutes part of elapsed $time.
my $secs = $time->sofar_secs;
Return seconds part of elapsed $time.
my $mins = $time->left_mins;
Return minutes part of remaining $time.
my $secs = $time->left_secs;
Return seconds part of remaining $time.
my $mins = $time->total_mins;
Return minutes part of total $time.
my $mins = $time->total_secs;
Return seconds part of total $time.
AUTHOR
Jerome Quelin
COPYRIGHT AND LICENSE
This software is copyright (c) 2007 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-04-01 Audio::MPD::Common::Time(3pm)