Software :: Webcamrc Configuration Not Parsing Dates For Image Filenames?

Jan 6, 2010

I am running webcam under Ubuntu 9.04 and I want to upload the images it captures to a server via ftp and have every image have a date and time in the filename. But I can't get this to work.From reading the man page for webcam it appears that I should be able to specify file = "webcam_%Y-%m-%d_%H:%M:%S.jpeg" and have it parsed so I get something like webcam_2010-01-05_10:54:23.jpeg but webcam is just uploading an image with an unparsed filename. So instead of getting a series of images on the server, I just get the most recent image (with the older images being overwritten every 1800 seconds). I know I could write a script on the server to rename the files as they are uploaded and put it on a cron but this seems to be something webcam should be able to handle.Here is my .webcamrc config file:

[grab]
device = /dev/video0
text = "webcam %Y-%m-%d %H:%M:%S"

[code]...

View 2 Replies


ADVERTISEMENT

General :: Parsing File Dates - Get The Date Of The Last Time A File Was Modified ?

Jan 11, 2010

I need to get the modified date on a file in linux to use in a script.I tried using 'ls -l' on the file, but this caused problems when the date turned from a single digit into a double. The reason for the problem was because I was parsing the result string on spaces.How can I get the date of the last time a file was modified so I can use it in a script? For example, if a file was modified on 1/11/2010, I need the 11.

View 2 Replies View Related

Server :: Unpredictable 403 Responses For Image-parsing PHP Script?

Jan 14, 2011

I've got a page with an elaborate javascript in it (imageflow) that is meant to emulate the apple coverflow that you see on iPhones. It wasn't my idea to use it but I must fix it.

This elaborate javascript, in order to show reflections of an image, makes use of a PHP script that will take an image as input, invert it vertically and create a reflection image dynamically. The script is called reflect2.php.

The problem I'm having is that the reflect2.php script is unpredictably returning 403 (forbidden) or 404 (not found) errors sporadically. The behavior will vary for a given image so it's apparently got no relation to the image format. For example, I will load my page and I'll get some 403/404 for certain urls (which correspond to images in my page):

FIRST ATTEMPT - only one bad reflection image url

The second time I load the same page, that previously broken image will be fine but this other one will be broken
SECOND ATTEMPT url

The third time, all the prior images are fine and this image, which was fine before, is not 403:
THIRD ATTEMPT url

I don't know why a given request to reflect2.php might result in a 403 reponse. As far as I can tell there is no code in the script that would result in such a header being sent for any reason whatsoever. I'm wondering if this might be a problem with Apache somehow. I'm on thin ice when it comes to Apache configuration values but perhaps there's a limit in the simultaneous connections permitted, the number of PHP threads available, or the keep-alive values or something?

View 14 Replies View Related

Software :: Bash - Rename Filenames With Corresponding Filenames?

Dec 1, 2009

I got a filename called like this:

beach---------20090808-110000.ogg
beach---------20090808-120000.ogg

It's like this:

name----------YYYYMMDD-hhmmss.ogg

Now Im splitting these hourly files into 1 minute files. I get then this output sofar properly:

beach---------20090808-110000_00.mp3
beach---------20090808-110000_01.mp3
beach---------20090808-110000_02.mp3
and so on....

the 00, 01, 02 and up are the minutes it has splitted it. Now I need a script, after it did this, to rename the file names into this:

beach---------20090808-110000.mp3
beach---------20090808-110100.mp3
beach---------20090808-110200.mp3
beach---------20090808-110300.mp3

View 4 Replies View Related

Fedora Security :: Error Parsing Semanage Configuration File?

Aug 5, 2011

I need to autorise sendmail to send mail, but SeLinux blocks this action. But when I use this command:

Code:
setsebool -P httpd_can_sendmail=1
I receive an error

[code]...

View 3 Replies View Related

Debian Configuration :: New Image-2.6.39-1-686-pae Image-686-pae?

May 21, 2011

WTF why is it with every update the devs try to break something. Might as well be using Ubuntu at this point and No I do not want to install Stable. Todays updqate would bring in linux-image-2.6.39-1-686-pae linux-image-686-pae, but my CPU Single core Intel Pentium M (-UP-) cache 1024 KB flags (sse sse2) bmips 1196.07 clocked at 600.00 MHz doesn't use PAE so it told me to remove linux-image-686 and to install linux-image-486. So more shiny crap that doesn't support older hardware, it is getting to be as bad as Microsoft.

Why don't I just go upgrade or buy new hardware with every new shiny crap that wants to upgrade. If it isn't broken do NOT fsck with it.

[Code]...

View 14 Replies View Related

Debian :: Make An Image Of Configuration For Install From It?

Aug 27, 2010

I configure my system in a long time and now I have a suitable system! But I install all directories in one partition and now I like install again, but I need make an image of my configuration for install from it and after install I don't spend time for again configuration.

View 2 Replies View Related

Debian Configuration :: Using Grub To Boot From An Iso Image?

May 30, 2010

I have a Knoppix DVD-ROM. I also have its image as k.iso at the second partition of HDD of my laptop. I use the DVD-ROM and write at the boot prompt the cheat code:

knoppix bootfrom=/dev/sda5/k.iso

I also have a folder Knoppix made during bootprompt by using the cheatcode knoppix tohd=/dev/sda5 and I can use the following cheatcode while booting from the DVD-ROM, like knoppix fromhd=/dev/sda5My laptop runs Debian Lenny 5.0.4, installed in the first partition of my HDD.
Can Grub be configured to boot from the Knoppix k.iso image, or the knoppix folder, which I use to use the Knoppix OS, so that I am freed from using the DVD, when I want to use the knoppix system?

View 14 Replies View Related

Debian Configuration :: Image In Console Background (no X)?

Aug 24, 2011

I would like to put an image in the background of my console (tty) like done by Gentoo or Suse : I found several tracks to follow, but I would like to have your advice on the best way to do that for Debian.

View 3 Replies View Related

Debian Configuration :: Xen-create-image - Command Not Found

Oct 26, 2015

I have been following the Xen Beginners Guide here: [URL] .....

Everything was going smoothly until I got to the 'Configuring xen-tools and building our guest' section (two thirds down the page).

I installed xen-tools and then typed the following in a terminal window (as root):

xen-create-image --hostname=development-pv-guest --memory=2048mb --vcpus=2 --lvm=develop --dhcp --pygrub --dist=jessie

I admit PV is new to me, compared to simple HVM, so I have a number of questions:

1. Why the command not found error?

2. Should I be booting from the Xen option or regular boot option at the start up screen when creating the xen image? I've tried both and get the same error message.

3. I have Debian 8 (Jessie) installed on my system and I wasn't sure whether I should therefore make this the guest OS in my Xen PV. In asking this question I'm thinking in terms of HVMs - but I assume my Xen PV needs a guest OS of some kind? Or is my host Debian 8 already acting as a guest OS in Xen PV? I'm confused

4. If I do need to install a guest OS, is it better to go for an earlier version of debian - so as not to be so resource hungry?

I'm nervous about screwing up my host debian installation, so when I got the error message, did some research but found nothing meaningful. I don't want to end up having to reinstall my Debian 8 (base OS) ... again!

View 8 Replies View Related

Debian Configuration :: How To Get A Virtual RAID Image Disk

Feb 20, 2016

How can i get a RAID virtual image disk?

What i need is to mount several directories from any other partiton (or file system) as a new merge file system that can grow or decrease depending on the free space. As if it was a dinamic RAID,so i can work with huge files distributed over the partitions mounted.

Ejemp: /mnt/sda1/dir_raid1 + /home/dir_raid2 + /mnt/sda3/dir_raid3 ---> /mnt/RAID/

mhddfs and unionfs <---- are not the solution im searching (cant use huge files)

View 0 Replies View Related

Debian Configuration :: Computer Won't Boot After Dd Image Restore

Mar 1, 2016

I have a Debian Jessie 32 bits machine with standard partitions : one EFI, one for the root system and a swap.

I did a dd image backup of it hard drive thinking i would be easy to restore it or clone to another device... but it seems it is not that simple ! My PC won't boot : no bootable drive found !

I did the same once with a 64 bit Debian Jessie which i fixed using an ubuntu live CD with boot-repair, but here with the 32 bits version it doesn't work : it keeps saying i have an EFI incompatible partition and i should use a 64 bits linux...

Note : i boot-repair from a 64 bits ubuntu live cd. Should i use a 32 bits version ? Because i can"t make a 32 bits Debian live CD to boot, usb key won't show up in boot options (32 bits install CD works fine)

I ha read some things and tried some others but nothing works

Grub and EFI are really obscure for me...

How could i fix my debian 32 boot ?

Or how can i properly clone my debian 32 on other PC ? am i missing something using dd ? should i use another tool ?

View 10 Replies View Related

Debian Configuration :: Install Custom Kernel Image

Mar 11, 2016

I've a problem running jessie on a XEN supervisor; my running kernel and the installed kernel image differ, because the host system forces the kernel at boot time. Current loaded kernel is

Code:
Select all$ uname -r
3.18.12

But I'm not able to install this version from the standard repository.

Code:
Select all# apt-cache search linux-image
linux-headers-3.16.0-4-amd64 - Header-Dateien für Linux 3.16.0-4-amd64
linux-image-3.16.0-4-amd64 - Linux 3.16 für 64-Bit-PCs
linux-image-3.16.0-4-amd64-dbg - Debugging symbols for Linux 3.16.0-4-amd64
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-amd64-dbg - Debugging symbols for Linux amd64 configuration (meta-package)
nvidia-kernel-3.16.0-4-amd64 - NVIDIA binary kernel module for Linux 3.16.0-4-amd64
linux-image-2.6.32-5-xen-amd64 - Linux 2.6.32 for 64-bit PCs, Xen dom0 support

Now I'm facing issues loading kernel modules for iptables, because the module path does not exist. Is there an easy way to install a proper kernel image from the standard repositories?

View 5 Replies View Related

Debian Configuration :: No Wireless When Running Live Image?

Aug 23, 2010

Just fooling around with a live image, thinking about dumping Ubuntu for a straight Debian install and I can't get wireless running on it. Is this a "known issue?"

View 11 Replies View Related

Debian Configuration :: Changing Grub Splash Image?

Nov 27, 2010

I decided to finally change the grub 1.98 splash image today and found a few tutorials on how to do so. They all pretty much said the same thing. Resize an image to 640 x 480, save it as a .tga, stick it in /boot/grub/images/desktop-base. I did so and opened /etc/grub.d/05_debian_theme and changed WALLPAPER="/usr/share/images/desktop-base/moreblue-orbit-grub.{png,tga}" to WALLPAPER="/usr/share/images/desktop-base/56871.{png,tga}". After that I ran update-grub. When it told me the image it found, it said it found desktop-grub. I don't know what I did wrong but it's not finding my image. Like an idiot I forgot to back up the original file but the only thing I changed was that WALLPAPER line, like I said. I had copied that version of the file and pasted it in another document before messing around with different parts of the file to see if I could get it to work. Everything ended in failure so I copied the back up in the other document and simply pasted it over the one I had been tinkering with. However, when I try to update grub I get a syntax error which I didn't before with the exact file I have now. The error reads:

/etc/grub.d/05_debian_theme: 65: Syntax error: end of file unexpected (expecting "}")

Here's my grub file.

#!/bin/sh -e
. /usr/lib/grub/grub-mkconfig_lib
# this allows desktop-base to override our settings
f=/usr/share/desktop-base/grub_background.sh

[Code]....

I'm completely lost at this point, both on how to actually change the splash image and why I'm getting a syntax error.

View 4 Replies View Related

Debian Configuration :: Set Boot-image With Driver From ATI And Nvidia ?

Jul 14, 2011

I get plymouth and install it success, but it only support nouveau(nvidia) mode.

When I update my driver with [URL] , plymouth gone.

Is there any other way to do boot-image with the driver from [URL] ?

I find super-image-manager(buc), but I can not install it.

Addition: What is buc ?

View 3 Replies View Related

Ubuntu Servers :: Get Image Of Server With All Configuration Files And Data?

Feb 23, 2011

how to get image of server with all configuration files and data. Without data loss.

View 5 Replies View Related

General :: Find In Between Particular Dates

Oct 29, 2010

find / -newer -10 mtime +30.i want to check only those files which are modified yesterday.

View 1 Replies View Related

OpenSUSE Install :: Couldn't Find Live Image Configuration File

Aug 12, 2010

I'm getting this error trying to install Live GNOME 32bit v11.3 or 11.4 build 11:

Code:
Couldn't find Live image configuration file

I'm installing from a USB stick. I can install v11.2 the same way no problem. USB stick created using SUSE Studio Image Writer and Win32DiskImager give same results.

View 2 Replies View Related

General :: Sort As Per The Dates And Months

Feb 22, 2010

I am getting little bit difficult in sorting the date ranges which are in a field like:

How make a sort as per the Month and date , i mean result should be as per the month and date wise. If i go for the sort -M , i am not able to get the list as per date of the particular month.

View 4 Replies View Related

Software :: Dir And Dates Listings Are Not Consistent?

Jan 26, 2011

It only occured to me now, but why is it that date listings are not consistent?

ex:

Code:

They are all Month Day Year but one (from that particular extract, there's more), why is the 3rd there one Month Day Time? I know the year is not 2011 because we have not hit august 2011 yet, but what if it's 2009 or 2008? I would not know.

One of my sites got hacked and I'm just trying to figure out what the hacker got into and trying to figure how he got in so I can fix the exploit.

View 3 Replies View Related

Debian Configuration :: Pamthreshold To Create Small Greyscale Image Of A Text Document

Nov 23, 2010

I have an old scanner script that uses pamthreshold to create a small greyscale image of a text document. This program does not seem to be available in debian. Can anyone tell me how I can install it, or if there are any better alternatives available?

View 1 Replies View Related

Ubuntu Security :: Interpret The 'dates' In Rkhunter.log?

Oct 6, 2010

I've got rkhunter installed and regularly do scans immediately before & after updates & if I get warnings about 'file property updates' after the update I use 'rkhunter --propupd' to give me a clean run.I'm about to setup a ubuntu computer for my nan, I want to enable automatic security updates so she doesn't have to do anything to keep her system secure. I was planning on running rkhunter when I go to her house (about once a month) and check the dates in the resulting rkhunter.log warnings with those in the var/log/apt/history.log to see if legitimate updates caused any rkhunter warnings. I've noticed though that the 'Current file modifiation time:' in the rkhunter.log warnings are incorrect.

My system seems to be about 15 days behind the actual date, I've now run rkhunter --propupd so I have no warnings but got this one off another forum post to show what I mean:

Current file modification time: 1283341157 (01-Sep-2010 06:39:17)

I believe that the '1283341157' is the time in some strange format and the date in brackets is what rkhunter thinks it might be in human format.

1) How to interpret the 'strange date format' (1283341157 in the line above)?

2) If there's a way of configuring the date in rkhunter so that they're correct in rkhunter.log?

3) If there's a better way of keeping her system up-to-date & secure, it's her first computer & she's 86 so I think setting up automatic security updates is the way to go, it'll be one less thing to overwhelm her!

View 2 Replies View Related

SUSE :: Get All Month Start And End Date Between Two Dates?

Dec 22, 2010

I have a requirement where I need to write to a file a block of static text for each month starting from 01-01-2000. It would be something like below

[code]...

View 2 Replies View Related

General :: Compare 2 Dates In European Format (dd/mm/yyy)?

Oct 12, 2009

I need to compare 2 dates in european format (dd/mm/yyy). date -d<my date> %s command converts date into unix epoch (integer), thus make it easy to compare. The problem is that -d (or --date) option interprets date in US format-ie mm/dd/yyy.

View 4 Replies View Related

General :: Convert Past Or Future Dates In Awk?

Mar 20, 2010

All I see from googling examples in awk is converting current date. How do I convert a list of past or future dates for example :

Jan18'09
Aug 7'98
Jun20'11
Apr 1'10

I will be using it to compare dates in a file and act on it accordingly.

View 5 Replies View Related

General :: Rsync Files With Dates After A Certain Date?

Jun 8, 2010

I was going to do a rsync -r -a -z -v -p -e sshto move some files frome server to another, but then realized all I really need are files which have dates starting June 1, 2008 to current. Is there a way to have rsync only sync those files?he directory structure that's my source goes all the way back to 2004.

View 5 Replies View Related

Programming :: Script To Generate Random Dates?

Aug 3, 2010

A script to generate random dates. It uses the year range 2006-2009, and truncates every month of the year to an ordinary February's 28 days, but otherwise it's pretty solid and safe.

Code:
spate=1
while [ $spate -le 120 ]

[code]....

View 1 Replies View Related

General :: Kill All The Processes That Have Dates Older Than Today?

Feb 11, 2011

I issue the command ps -aux | grep tony. It displays the following output

tony 10986 0.0 0.0 33532 464 ? S Feb01 0:00 vncconfig -iconic
tony 10988 0.0 0.0 86012 512 ? S Feb01 0:00 twm
tony 15553 0.0 0.0 92404 1848 ? S 10:34 0:00 sshd: tony@pts/34

[code]....

View 3 Replies View Related

General :: Processing Log File Within Certain Dates Based On Filename

Apr 8, 2010

I am working on the script parsing specific message "TEST" from multiple file. The log file name looks like:

N3.2009-11-26-03-05-02.console.log.tar.gz
N4.2009-11-29-00-25-03.console.log.tar.gz
N6.2009-12-01-10-05-02.console.log.tar.gz

I am using the following command:
zgrep -a --text "TEST" * | awk -F"[ .,]" '{sub(".*:","",$6); sub(",.*","",$7); print $1,$6,$7,$10}
and getting
N3 2009-11-25 20:12:57 TEST
N4 2009-11-28 10:42:18 TEST
N6 2009-12-01 10:00:24 TEST

If I only want to search the log file after 2009-11-29, what shall I change the command?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved