[mythtv-users] Script to create symlinks from numeric to human
Domenic Ravita
dravita at earthlink.net
Fri Dec 10 17:23:58 UTC 2004
I've tried to execute Dale's script but so far have not had success. I only receive this output:
Done RM
Skipping /video/recordings/1068_2004-11-29 10:00:00_2004-11-29 10:30:00.nuv
Skipping /video/recordings/1068_2004-11-30 10:00:00_2004-11-30 10:30:00.nuv
Then the script exits, returning me to the command prompt. The "/video/recordings/pretty" dir is created but no files appear there. So, naturally I'm looking closely at the following line to determine why the script seems to exit here:
do { print "Skipping $mythpath/$ofn\n"; next } unless -e "$mythpath/$ofn";
I don't understand what the "unless" is checking for. Can anybody out there explain to me why my script exits without creating the "pretty" files? By the way, here is a partial directory listing for my /video/recordings directory:
total 44643712
drwxr-xr-x 3 root root 4096 Dec 10 12:00 .
drwxr-xr-x 5 root root 4096 Nov 29 18:59 ..
-rwxr-xr-x 1 root root 1166919616 Nov 29 10:30 1068_20041129100000_20041129103000.nuv
-rwxr-xr-x 1 root root 37823 Dec 8 00:17 1068_20041129100000_20041129103000.nuv.png
-rwxr-xr-x 1 root root 1165539264 Nov 30 10:30 1068_20041130100000_20041130103000.nuv
-rwxr-xr-x 1 root root 36676 Dec 8 02:08 1068_20041130100000_20041130103000.nuv.png
Thanks, Domenic
More information about the mythtv-users
mailing list