04-30-2013
thanks..
till now this command works fine. will ask again if some problem comes.
but if i want the latest files that came in last 1 hour or last 2 hours. then what i have to write in -mmin parameter?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have to capture the creation date and time stamp for a file. The ls command doesn't list all the required information. I need year, month, day, hour, minute and second.
Any ideas... (1 Reply)
Discussion started by: Xenon
1 Replies
2. UNIX for Dummies Questions & Answers
I am trying to insert a line with a date stamp in a file that is used to monitor activity in one of our directories. By doing this, I want to grep that file each day and go to the last entry for each time a error occurred and pull all errors generated if any exist. If error exists I want that error... (3 Replies)
Discussion started by: shephardfamily
3 Replies
3. Shell Programming and Scripting
Looking for a shell script or a simple perl script . I am new to scripting and not very good at it .
I have 2 directories . One of them holds a text file with list of files in it and the second one is a daily log which shows the file completion time. I need to co-relate both and make a report.
... (0 Replies)
Discussion started by: breez_drew
0 Replies
4. UNIX for Dummies Questions & Answers
Hi
When i do ls -ltr <file1> then it shows me the date and time of the file
if - for whatever reason file has future date/time stamp then ls -ltr is not showing the time, it just shows only date part ... even if time is ahead by 2 hr than current time.
suppose a file was copied from INDIA... (3 Replies)
Discussion started by: reldb
3 Replies
5. Shell Programming and Scripting
Hi
I use "touch -t xxxxxxxx" command to set date/time stamp of a file. My requirement is to read the date/time stamp of a file and apply it to another file.
Is there anyway to do it simple instead of manually taking date/stamp of first file?
TIA
Prvn (2 Replies)
Discussion started by: prvnrk
2 Replies
6. Shell Programming and Scripting
Hi!
Please see our current script:
#!/usr/bin/ksh
if (egrep "This string is found in the log" /a01/bpm.log)
then
mailx -s "Error from log" me@email.com, him@email.com </a01/bpm.log
fi
To the above existing script, we need to add the following change:
1) After finding the string,... (7 Replies)
Discussion started by: atechcorp
7 Replies
7. Shell Programming and Scripting
Hi All,
Please help.
I have requirement to read the file / folder based on the latest date and download the file and folder.
There will be files and folders in the location like
20140630-144422
20140630-144422.csv
20140707-182653
20140707-182653.csv
20140710-183153... (7 Replies)
Discussion started by: Praveen Pandit
7 Replies
8. Shell Programming and Scripting
I am developing one script which will take log file name, output file name, date, hour and minute as an argument and based on these inputs, the script will scan and capture all the error(s) that have been triggered from a given time. Example: script should capture all the error after 13:50 on Jan... (2 Replies)
Discussion started by: ROMA3
2 Replies
9. Shell Programming and Scripting
find /app/data -name "Availability" -
Below is the output now i need to filter based on latest modified timestamp.
I know 3 is the latest modified time stamp but i tried different options but only filtering docs and not on headnote..Can any one tell me how to do that..
... (2 Replies)
Discussion started by: vkiyv05
2 Replies
10. Shell Programming and Scripting
I have a file hello.txt which was created today (today's date timestamp)
I wish to change its date timestamp (access, modified, created) to 1 week old i.e one week from now.
uname -a
SunOS mymac 5.11 11.2 sun4v sparc sun4v
Can you please suggest a easy way to do that ? (12 Replies)
Discussion started by: mohtashims
12 Replies
LEARN ABOUT DEBIAN
rotter
ROTTER(1) ROTTER(1)
NAME
rotter - a recording of transmission / audio logger for JACK
SYNOPSIS
rotter [options] <directory>
DESCRIPTION
Rotter is a Recording of Transmission / Audio Logger for JACK. It was designed for use by radio stations, who are legally required to keep
a recording of all their output. Rotter runs continuously, writing to a new file every hour.
Rotter can output files in two different strutures, either all files in a single directory or create a directory structure:
flat: /root_directory/YYYY-MM-DD-HH.suffix
hierarchy: /root_directory/YYYY/MM/DD/HH/archive.suffix
combo: /root_directory/YYYY/MM/DD/HH/YYYY-MM-DD-HH.suffix
dailydir: /root_directory/YYYY-MM-DD/YYYY-MM-DD-HH.suffix
The advantage of using a folder hierarchy is that you can store related files in the hour's directory.
OPTIONS
-a
Automatically connect JACK ports to the first two JACK input ports found.
-f <format>
Select the output format of the log files. See the rotter help screen for a list of supported output format names.
-b <bitrate>
Select the bitrate (in kbps) of the log file. This parameter is only supported by bitstream formats (MPEG Audio).
-c <channels>
Set the number of input channels to be logged. This number of JACK ports will be created. Should either 1 or 2.
-n <name>
Choose the name of the Jack client to register as.
-N <filename>
Choose a filename prefix for the archive files created (default archive).
-d <hours>
Specifies the number of hours of audio to keep before it is deleted. Files are deleted at the start of every hour, based on the files
modification date. Default is to not delete files.
-R <secs>
Sets the length (in seconds) of the ringbuffer. This is the buffer between the internal audio grabber and the audio encoder. If you
have a slow machine you might want to try increating the size of the buffer.
-L <layout>
Choose a file layout option for the archive files created. See above for a list.
-j
By default rotter will automatically try and start jackd if it isn't running. This option disables that feature.
-v
Enable verbose mode. Display more messages about what rotter is doing.
-q
Enable quiet mode. Only display error messages.
EXAMPLES
rotter -a -f mp3 -d 1000 -b 160 -v /var/achives
Start logging audio to hourly files in /var/archives. Rotter will automatically connect itself to the first two JACK output ports it finds
and encode to MPEG Layer 3 audio at 128kbps. Each hour it will delete files older than 1000 hours (42 days). Verbose mode means it will
display more informational messages.
AUTHOR
Written by Nicholas J Humfrey
RESOURCES
Web site: http://www.aelius.com/njh/rotter/
COPYING
Copyright (C) 2006-2007 Nicholas J Humfrey. Free use of this software is granted under the terms of the GNU General Public License (GPL).
10/03/2010 ROTTER(1)