2010-02-02, 07:18
for the record..i ran this as root..still the same permissions error.. I think this rules out any error on my part
i dunno about the check script i tried to make with your function..setting the variables in the interactive shells gives me error to..the script gave no error..but im no bash scripter, i just thought thats how you defined things in a script..as a matter of fact ..i cannot export ANYTHING for $1 and etc..i dont think those are declarable
I ran this script in bash debig mode..if you're interested it'll be up on pastebin
http://pastebin.org/85299
Code:
myth mythicalLibrarian # ./mythicalLibrarian.sh "Family Guy" "Da Boom" "/mnt/ntfs/myth/1015_20100201220000.mpg"
Accessing MythTV DataBase:
COMMERCIAL DATA START:9649 STOP:14341
COMMERCIAL DATA START:24246 STOP:30292
COMMERCIAL DATA START:42080 STOP:46625
0
RECSTART:2010-02-01 22:00:00 MOVIEYEAR:1999 SERIESDATE:1999-12-26
PROGRAMID:EP002960010012 ShowCategory:Comedy STARS:0 RATING:0
PLOT: Paranoid about Y2K, Peter herds the family into the basement for protection.
TESTING FOR ZAP2IT SERIES ID MATCH:Family Guy
DATABASE IS MAINTAINED. TIME IS:1265088203 NEXT UPDATE IS:1265160381
No direct Zap2it match found. Please update TheTvDb.com
USING FUZZY LOGIC FOR EPISODE RECOGNITION
Family Guy
FUZZY LOGIC SHOW NAME: Family Guy ID: 75978
DATABASE IS MAINTAINED. TIME IS:1265088204 NEXT UPDATE IS:1265160381
FUZZY Exx NUMBER:35
EPISODE:Da Boom ABSOLUTE NUMBER:35 S02E03
FILE SIZE:584738kB
MOVEDIR FREE SPACE: 89730136kB- WRITABLE:0
ALTMOVEDIR FREE SPACE: 28225008kB- WRITABLE:0
MOVIEDIR FREE SPACE: 89730136kB- WRITABLE:0
ALTMOVIEDIR FREE SPACE: 28225008kB- WRITABLE:0
PLOT: Paranoid about Y2K, Peter herds the family into the basement for protection.
FAILSAFE FLAG WAS SET
myth mythicalLibrarian # cat output.log
@@@@@@@@@@@NEW SEARCH INITIATED AT Tue Feb 2 00:17:48 EST 2010@@@@@@@@@@@@@
%%%NO DATABASE INFORMATION. CHECK LOGIN/PASS OR FILE %%%%%
SEARCHING: www.TheTvDb.com SHOW NAME: Family Guy EPISODE: Da Boom
FILE NAME: /mnt/ntfs/myth/1015_20100201220000.mpg
SEARCH FOUND:Family Guy ID#: 75978
USING FUZZY LOGIC FOR EPISODE RECOGNITION
No direct Zap2it match found. Please update TheTvDb.com
SEARCH FOUND:Family Guy ID#: 75978
DEFINED ABSOLOUTE EPISODE NUMBER: 35
###################DEBUG MODE ENABLED####################
LISTING INTERNAL VARIABLES USED BY mythicalLibrarian.
INTERNET TIMEOUT:50- TVDB API KEY:6DF511BB2A64E0E9- mythicalLibrarian WORKING DIR:/home/mythtv/mythicalLibrarian-
MOVE DIR:/mnt/ntfs/tv- USING SHOWNAME AS FOLDER:Enabled-
FAILSAFE MODE:Disabled- FAILSAFE DIR:/home/mythtv- ALTERNATE MOVE DIR:/mnt/extra/tv-
USE ORIGINAL DIR:Disabled NOTIFICATIONS:Disabled DEBUG MODE:Enabled-
INPUT SHOW NAME:Family Guy- LOCAL SHOW NAME TRANSLATION:- ShowName:Family Guy
SENT TVDB SHOW NAME:Family%20Guy-
RESOLVED SERIES ID:75978- RESOVED SHOW NAME:Family Guy-
INPUT EPISODE NAME:Da Boom- ABSOLOUTE EPISODE NUMBER:35- RESOLVED EPISODE NAME:Da Boom-
SEASON:S02- EPISODE:E03- SYMLINK MODE:LINK- FILESIZE: 584738'kB'
CREATE AND DELETE FLAGS: ORIGINALDIR:0- FREE:89730136kB- WORKINGDIR:0 Free:1802764kB-
MOVEDIR:0- FREE:89730136kB- ALTERNATEMOVEDIR:0- FREE:28225008kB-
PRIMARYMOVIEDIRWRITABLE:0- FREE:89730136kB- ALTERNATEMOVIEDIR:0- FREE:28225008kB-
DATABASE INFORMATION
RECSTART:2010-02-01 22:00:00- MOVIE YEAR:1999- ORIGINAL SERIES DATE:1999-12-26-
PROGRAMID:EP002960010012- CHANNEL ID:1015- CATEGORY:Comedy-
EXTRAPOLATED DATA DETERMINED THIS RECORDING AS A:Series With Episode Data- STARS:0 RATING:0
ZAP2IT SERIES ID:4163209- MATCHED TVDB SERIES ID:-
####################END OF DEBUG LOG#####################
FAILSAFE FLAG WAS SET CHECK PERMISSIONS AND FOLDERS
i dunno about the check script i tried to make with your function..setting the variables in the interactive shells gives me error to..the script gave no error..but im no bash scripter, i just thought thats how you defined things in a script..as a matter of fact ..i cannot export ANYTHING for $1 and etc..i dont think those are declarable
I ran this script in bash debig mode..if you're interested it'll be up on pastebin
http://pastebin.org/85299