Logo
 
 
 About 
 Configuration 
 History 
 Links 
 Linux 
 Mac 
 Nslu2 
 Other 
 Windows 




Home : Rt2mei Help

rt2mei - Usage

Usage of the PHP Script, rt2mei.php

Assuming that PHP is in the PATH then

php <path>rt2mei.php [-- options]

Where options are any of the following

-hPrints this information.
-qQuiet mode, no informational or error messages are output.
-fSuppresses the generation of a Favourites file.
-rreplace ':' in title with '_'. This is useful if you copy recordings to your PC and want to avoid the problem that Windows has with colons in filenames.
-iUsed to explicitly specify where to find the Configuration file. It must be followed by the path to the directory where the rt2mei.cfg configuration file is located. If omitted then the directory path for this script is used.
-oUsed to explicitly specify where to write the output file(s). It must be followed by the path to the directory where MyStuff.mei and rt2mei.mcl are to be written. If omitted then the directory path for this script is used.
-wWhen followed by the path to the the wget executable, forces wget to be used to grab the EPG data. This is only normally necessary if you are behind a corporate firewall or similar. wget is not included in rt2mei.
-tfollowed by the full path to the directory where temporary files should be written. This is only needed when the -w switch is used.
-new  Rejects EPG data if it contains a program that ends before 0000 hrs today. Use this option when running rt2mei as a daily scheduled task (recommended start time is 0700 hrs). rt2mei will then wait until the RT website has been updated before grabbing all the EPG data and making the MyStuff.mei file.
-mtAccept empty EPG data files. I recommend that you DO NOT use this option because you may lose EPG data. If you insist on using it then be it on your own head, don't come whining to me!

Remember to include the two hyphens before the options, e.g.

php c:\rt2mei\rt2mei.php -- -new

Usage of the Shell Script, rt2mei, for the NSLU2 and similar devices

Assuming that this shell script is being run from the current directory

./rt2mei [options]

Where options are any of the following

-qQuiet mode, no informational or error messages are output.
-nograbOmits the downloading of EPG data from the Radio Times website. It just copies across any existing files to the Toppy.
-fsuppresses the writing of a Favourites file.
-rreplace ':' in title with '_'. This is useful if you copy recordings to your PC and want to avoid the problem that Windows has with colons in filenames.
-newRejects EPG data if it contains a program that ends before 0000 hrs today. Use this option when running rt2mei as a daily scheduled task (recommended start time is 0700 hrs). rt2mei will then wait until the RT website has been updated before grabbing all the EPG data and making the MyStuff.mei file.
-mtAccept empty EPG data files. I recommend that you DO NOT use this option because you may lose EPG data. If you insist on using it then be it on your own head, don't come whining to me!
-iUsed to explicitly specify where to find the Configuration file. It must be followed by the path to the directory where the rt2mei.cfg configuration file is located. If omitted then the directory path for this script is used.
-wWhen followed by the path to the the wget executable, forces wget to be used to grab the EPG data. This is only normally necessary if you are behind a corporate firewall or similar. wget is not included in rt2mei.
-tmpfollowed by a path to the temp directory (default is /tmp).
-ramdisk  Ensures that all files are written to ramdisk (the temp directory). This is useful if you are running from flash disk. The default is for MyStuff.mei and rt2mei.mcl to be written to the directory where this script is.
-tidyupDeletes MyStuff.mei and rt2mei.mcl after transfer.