Hi Dave,
The attached file is for future use. If you need to clear the spider's data. Upload the script into the administration directory, ensure that the def files can be deleted by the currrent user and run the script.
The old def files should be fine. Occasionally, there are problems deleting them because of relationships.
3. The best way of running it is just like how you are doing it. Occasionally, the spider may take extra time for it to stop. 10 seconds to 30 is alright. If that doesn't work, sometimes, the spider will be killed prematurely and can't finish cleaning up after itself.
First make sure that the spider isn't running
ps ax | grep spider
will check if the spider is running. If it is, you'll see something like the following:
4539 ? S 0:00 /usr/bin/perl ./spider.pl
4541 pts/3 S 0:00 grep spider
The first line is the most important. That means that the spider is running.
In that case, try using the admin to stop the spider, but if that doesn't work grab the first number of the output, which is a process id and kill it.
kill -9 4539
Finally, if the spider is still reporting that it is running, you may have to go into the following directory: ../admin/Plugins/Spider and delete the "spider.status" file.
Hope this helps,
Aki
The attached file is for future use. If you need to clear the spider's data. Upload the script into the administration directory, ensure that the def files can be deleted by the currrent user and run the script.
The old def files should be fine. Occasionally, there are problems deleting them because of relationships.
3. The best way of running it is just like how you are doing it. Occasionally, the spider may take extra time for it to stop. 10 seconds to 30 is alright. If that doesn't work, sometimes, the spider will be killed prematurely and can't finish cleaning up after itself.
First make sure that the spider isn't running
ps ax | grep spider
will check if the spider is running. If it is, you'll see something like the following:
4539 ? S 0:00 /usr/bin/perl ./spider.pl
4541 pts/3 S 0:00 grep spider
The first line is the most important. That means that the spider is running.
In that case, try using the admin to stop the spider, but if that doesn't work grab the first number of the output, which is a process id and kill it.
kill -9 4539
Finally, if the spider is still reporting that it is running, you may have to go into the following directory: ../admin/Plugins/Spider and delete the "spider.status" file.
Hope this helps,
Aki