Fwd: Problems

From: Beau Dwyer <quotidian_at_gmail.com>
Date: Thu, 9 Oct 2008 16:53:04 +1100

Hi,

I have incrontab installed and it all appears to be working, but I can't get
it to run a script.

I have a perl script that renames TV episodes using data pulled from web
sites. I am trying to call this when files are placed in folders.

My Crontab looks like this
/RAID/TV/American\ Dad/Season\ 4 IN_MOVED_TO /usr/bin/tvrenamer.pl
--folder="$@"

This appears in Syslog
Oct 9 09:54:45 MediaBox incrond[5471]: (beau) CMD (/usr/bin/tvrenamer.pl
--folder="/RAID/TV/American Dad/Season 4")

If I manually run the command shown in syslog "/usr/bin/tvrenamer.pl
--folder="/RAID/TV/American Dad/Season 4" the perl script does it's thing,
but the command launched by crontab just doesn't do anything. After much
testing I am thinking maybe it has something to do with the whitespaces
returned in by the $@ but I really am not sure. Is there a way to have
incrontab return the $@ variable with \ before the whitespaces like it is
entered?

Beau
Received on Thu Oct 09 2008 - 07:53:46 CEST

This archive was generated by hypermail 2.2.0 : Tue Jun 05 2012 - 22:14:21 CEST