I have been a long time lurker, and have learned a lot from these forums, thank you to everyone.
I am using Zoneminder to record a security camera feed. No motion detection, just 24 hour recording. I then have a script that checks Mysql for events dated the day before, and throws them at ffmpeg which turns them into a daily video. I never watch the video, so I am looking to find a way to make sure everything is running right. The daily video that is created is always about 600MB.
So I think there is 2 ways to go about this. Add a line at the end of my script that sends a mail with the created file's details, or run a separate script that checks a directory and mails the details of the newest file in that directory.
Hi Friends,
i am trying to write a shell script which will check for the logfile size.
if the content of the logfile is wc -l >=1 then send mail with log file as attachment.else do nothing.
i'm trying the below code can any one help on this
if ]
then
(echo "`cat... (2 Replies)
Hi,
I have to directory
/usr/inbound
-------------
10900.txt
10889.txt
109290202.txt
I need to create inbound directory
and i need to know size of these files one by one
if file size is zero i need to print message like "empty file"
Please help me how to solve this
thanks
krish. (1 Reply)
Hello. I do have a problem.
The statement sounds like this: Given a directory, find all subdirectories (regardless of depth) which contain a file that has more than a half of the size of the respective subdirectory.
I've tried to solve this in many ways, but all I came up with is half... (1 Reply)
Hi,
We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB?
I have seen this before we an Oracle temp file... (6 Replies)
I am new to shell scripting so i need some help need how to go about with this problem.
I have a directory which contains files in the following format. The files are in a diretory called /incoming/external/data
AA_20100806.dat
AA_20100807.dat
AA_20100808.dat
... (4 Replies)
Hi
I am looking for a help in designing a bash script on linux which can do below:-
1) Look in a specific directory for any new files
2) Mail the content of the new file
Appreciate any help
Regards
Neha (5 Replies)
I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms.
Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
How would I go about resolving this error
temporary mail message file: No such file or directory
Can anybody tell me where the default location is for the temporary mail message file is for mailx? It appears that it doesn't exist.
Thanks (1 Reply)
Hi,
I am trying to write a script which will check if the filesize is grather than 0 KB, compress the file and send to the email list else if the file size is zero KB don't send a mail update the log
if
then
echo "Validate the file" | mailx -s " There are errors : " ${EMAIL_LIST}
else... (5 Replies)
Hello,
Here is my code:
:~$ truncate -s 16M MyTestFile.txt
:~$ du -h MyTestFile.txt
4,0K MyTestFile.txt
Q1: Please why du -h does not work in this case ?
Q2: Other than "du -h", how can i get the size of a directory (using linux command)
Thanks a lot.
Best Regards. (2 Replies)
Discussion started by: chercheur111
2 Replies
LEARN ABOUT DEBIAN
lurker-list
LURKER-LIST(1) General Commands Manual LURKER-LIST(1)NAME
lurker-list -- parses lists from the config file
SYNOPSIS
lurker-list [-c <config-file>] [-f <locale>] [-i -g -t -a -l -d -s -o] [listid ...]
DESCRIPTION
lurker-list outputs various lurker settings from the config file for use in shell scripts. Do not use sed/grep/etc, instead use this as it
respects include.
If no list ids are given, then all lists are dumped. If no field is specified, then all fields are dumped.
OPTIONS -c config-file
Use this config file for lurker settings.
-f locale Choose lurker config fields from the specified locale (it defaults to selecting the fallback case for each field).
-i Output only the list id
-g Output only the group
-t Output only the title
-a Output only the email address
-l Output only the url link
-d Output only the description
-s Output only the language
-o Output only the offline status
SEE ALSO lurker-index(1), lurker-prune(1), lurker-params(1), lurker-search(1)
lurker documentation on http://lurker.sourceforge.net/
COPYRIGHT
Copyright (C) 2002: Wesley W. Terpstra <terpstra@users.sourceforge.net>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
BUGS
Before reporting a bug, please confirm that the bug you found is still present in the latest official release. If the problem persists,
then send mail with instructions describing how to reproduce the bug to <lurker-users@lists.sourceforge.net>.
LURKER-LIST(1)