The releases of ebaytools and mtforums have brought about a few questions, so I figured I would post the answers here for everybody to enjoy.
ebaytools, requires a module from CPAN called WWW::Search::Ebay, under linux the easiest way to install this is to open a terminal and type perl -MCPAN -e ‘install WWW::Search’ , it will do all the work for you to get it installed. It will search out and install the other modules that it needs, do this, its a time saver. After that one is done: perl -MCPAN -e ‘install WWW::Search’ will installed the ebay search module.
If you want to have the .xml files uploaded to your webserver or some other server and you have rsync you can use something like this:
rsync -e ssh -avz /your/xml/dirl/ user@webserver:/home/user/www/xml/
Note: I modifed the output of ebaytools and mtforums to a common xml directory on my machine.
If you don’t want to have to type your password into ssh each time you try to connect with rsync you can do the following to setup a secure method to access your server with out using a password, this is how i do it:
On the client:
1. ssh-keygen -t dsa -f ~/.ssh/id_dsa -C “comment if you want”
2. cat ~/.ssh/id_dsa.pub | ssh username@webhost ‘cat – >> ~/.ssh/authorized_keys’
3. cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
That’s it now you can ssh and rsync to your remote host with out having to enter a password. You can readup on this if you want to understand it more.
For me to run the perl files in cron, i wrap them in a simple script, for example:
mycrontab looks like:
20 3 * * * /home/user/ebaytools
That’s running the script called ebaytools at 3:20 every morning every day. I have the mtforums running every 2 hours.
I think that should answer most of the questions.