|
2010-09-22
, 13:52
|
Posts: 874 |
Thanked: 316 times |
Joined on Jun 2007
@ London UK
|
#342
|
The Following User Says Thank You to Rebski For This Useful Post: | ||
|
2010-09-22
, 15:24
|
Posts: 4,556 |
Thanked: 1,624 times |
Joined on Dec 2007
|
#343
|
The Following 2 Users Say Thank You to Laughing Man For This Useful Post: | ||
|
2010-09-22
, 15:35
|
|
Posts: 3,524 |
Thanked: 2,958 times |
Joined on Oct 2007
@ Delta Quadrant
|
#344
|
The Following User Says Thank You to Capt'n Corrupt For This Useful Post: | ||
|
2010-09-22
, 15:37
|
Posts: 58 |
Thanked: 20 times |
Joined on Aug 2008
@ Vienna, Austria
|
#345
|
The Following 3 Users Say Thank You to umberto_soprano For This Useful Post: | ||
|
2010-09-22
, 15:49
|
|
Posts: 4,672 |
Thanked: 5,455 times |
Joined on Jul 2008
@ Springfield, MA, USA
|
#346
|
Hmm... You could consider inotify which has been included in mainline linux kernels since 2.6.13. It basically monitors a FS for changes and has an API for these events.
Here's a script that a user copied that uses inotifywait (an inotify command intended for script use), that waits for a change to a directory tree, then fires a command (or commands):
http://ubuntuforums.org/showpost.php...39&postcount=3Code:#!/bin/sh while inotifywait -e modify -t 120 /my/media/directory; do /etc/init.d/ushare reload done
And here's the inotifywait man page:
http://linux.die.net/man/1/inotifywait
Of course you'd have to install the requisite software, but this should help tremendously!
Here are install instructions:
http://wiki.github.com/rvoicilas/inotify-tools/
Yeah, a bummer. VLC doesn't seem to support DLNA, but perhaps I need to look deeper. It may be offered in some sort of a plugin.
miles@unicron:~$ inotify --help
No command 'inotify' found, did you mean:
Command 'dnotify' from package 'dnotify' (universe)
inotify: command not found
miles@unicron:~$ apt-cache show dnotify
Package: dnotify
Priority: optional
Section: universe/utils
Installed-Size: 120
Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>
Original-Maintainer: Debian QA Group <packages@qa.debian.org>
Architecture: i386
Version: 0.18.0-2
Depends: libc6 (>= 2.8)
Filename: pool/universe/d/dnotify/dnotify_0.18.0-2_i386.deb
Size: 24796
MD5sum: 7ab465b4626a893dff1c93d996c47b22
SHA1: b11c89f49f9fe809e696cd58358f763105f26a7b
SHA256: 1126f2a86e7ddb4ac27c4f07dd872ddd86380b9d7251f78f16 fe75bb6be77174
Description: execute a command when the contents of a directory change
dnotify is a simple program based on Linux kernel 2.4.19+'s dnotify
API. dnotify can execute a specified command each time the content
of a specific directory changes. It is run from the command line and
takes two arguments: one or more directories to monitor and a command
to execute whenever a directory has changed. Options control what
events to trigger on: when a file was read in the directory, when one
was created, deleted and so on.
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
The Following User Says Thank You to danramos For This Useful Post: | ||
|
2010-09-22
, 15:54
|
Posts: 1,097 |
Thanked: 650 times |
Joined on Nov 2007
|
#347
|
Here's a post from PC World:
Five Reasons To Ignore the Galaxy Tab and get the iPad
http://www.pcworld.com/businesscente...html?tk=hp_new
I've included it to provide a counter-perspective on this incredibly biased (my fault, no less) Galaxy Tab thread!
There are some interesting points raised, but nothing that you've likely not heard. Of the credible points of comparison they list: screen-size, battery-life, and iCulture (the very mature iOS eco-system -- though they don't differentiate iPad apps from iPhone/iPod apps).
The Following 2 Users Say Thank You to nilchak For This Useful Post: | ||
|
2010-09-22
, 15:57
|
|
Posts: 3,524 |
Thanked: 2,958 times |
Joined on Oct 2007
@ Delta Quadrant
|
#348
|
|
2010-09-22
, 16:00
|
|
Posts: 4,672 |
Thanked: 5,455 times |
Joined on Jul 2008
@ Springfield, MA, USA
|
#349
|
Hey Dan!
dnotify was obseleted by inotify! Using apt-get, you can install inotify using:
apt-get install inotify-tools
The rest is butter -- as they say . I also updated the script in my last post to be a little more relevant to your needs!
Here's the wikipedia article mentioning the dnotify obsolescence:
http://en.wikipedia.org/wiki/Dnotify
Let me know how it goes! I'm going to be implementing inotify for a different reason, but it is very interesting tech.
dnotify -a /home/miles/shows -e sudo /etc/init.d/ushare reload
|
2010-09-22
, 16:09
|
|
Posts: 3,524 |
Thanked: 2,958 times |
Joined on Oct 2007
@ Delta Quadrant
|
#350
|
I installed that too--I noticed it afterwards. Although.. it seems like dnotify simplified the whole script down to just:
Not sure why they'd deprecate something THAT much more simpler and efficient.Code:dnotify -a /home/miles/shows -e sudo /etc/init.d/ushare reload
Edit: Ahh.. read the article, that explains why it was deprecated. I had assumed it was working th way inotify was working. Good show, Cap'n!
Tags |
android envy, buzz..buzz buzz, core failure, crapdroid, galaxy fap, galaxy tab, ipad killer, samsung, tab trolls, tablet envy |
Thread Tools | |
|
Five Reasons To Ignore the Galaxy Tab and get the iPad
http://www.pcworld.com/businesscente...html?tk=hp_new
I've included it to provide a counter-perspective on this incredibly biased (my fault, no less) Galaxy Tab thread!
There are some interesting points raised, but nothing that you've likely not heard. Of the credible points of comparison they list: screen-size, battery-life, and iCulture (the very mature iOS eco-system -- though they don't differentiate iPad apps from iPhone/iPod apps).