04-03-2013
Quote:
Originally Posted by
Corona688
PHP is not shell script. Shell script won't work in there.
You don't have to fill every directory to disable indexing. The autoindex off; directive in the relevant section of nginx's config file will prevent file lists from being generated.
I also need to prevent googlebot from indexing it. And I don't want to run it in shell. Sorry for the confusion, appearantly I posted it in the wrong forums.
---------- Post updated at 01:32 PM ---------- Previous update was at 01:28 PM ----------
I have Google Custom Search and with no index.html files it keeps showing some weird directories in the search results.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have a webpage, http://my.dns.com/~zp523/index.html,
I want all people to have read and execute privileges. I want to extend it with execute privilege. Which command should be used in chmod?
is it only give read(r) & execute(x) parameter in 'chmod ??? index.html'
thk a lot!! (1 Reply)
Discussion started by: zp523444
1 Replies
2. Web Development
Hi,
I found out the CIA's worldfact book is has an open copyright, anyone can use it as long as we don't use the CIA shield.
So, I set up an experimental SEO site to see what will happen in the search engines over time:
The Global Factbook
Please click above and let's see if we can... (1 Reply)
Discussion started by: Neo
1 Replies
3. Shell Programming and Scripting
Hi,
I am trying to write a shell script which execute certain commands within certain folders in each user's home directories
I started off with a bash script -
#!/bin/csh -f
su -l cvsusr1
cvs -d /home/cvsadm/repository status
But the shell script finishes immediately after... (1 Reply)
Discussion started by: rupa_lahiri
1 Replies
4. Shell Programming and Scripting
I want to execute a shell script when clicking on an html link. I want the output of the script to be shown on the webpage. Whats the best way to achieve this? (6 Replies)
Discussion started by: streetfighter2
6 Replies
5. Shell Programming and Scripting
I need a script that can do this:
A script that searches all directories and subdirectories for .html files
When a .html file is found it creates a index.html file in that folder.
It then edits the index.html file and inserts links to all of the .html files that are in that folder into the... (5 Replies)
Discussion started by: seashell11
5 Replies
6. Shell Programming and Scripting
Hi,
I need to basically get a list of all the tarballs located at uri
I am currently doing a wget on urito get the index.html page
Now this index page contains the list of uris that I want to use in my bash script.
can someone please guide me ,.
I am new to Linux and shell scripting.
... (5 Replies)
Discussion started by: mnanavati
5 Replies
7. UNIX and Linux Applications
hi there
im currently in the process of creating a website for use basically within our org. im using a os x machine and installed MAMP - which includes Apache, mysql... the site will be used by techs to primarily install pkgs files onto os x devices. i would like to have buttons or hyperlinks... (2 Replies)
Discussion started by: sheshe
2 Replies
8. Shell Programming and Scripting
Hi Guys,
I've got a script that runs and collects statistics from one of our machines and outputs the data into a csv file. Now, that script runs fine and I managed to create another one (with a lot of help from this forum!!) to trim the csv file down to all the data that I need, rather than all... (9 Replies)
Discussion started by: jimbob01
9 Replies
9. Shell Programming and Scripting
Hi
I want to attach multiple index.html, index_v2 file using mutt command
basically i want first index.html and then index_v2.html file as a body in email , these html files are test reports
I am using following command , but it is over writing , any help appreceated ;)
mutt -e... (2 Replies)
Discussion started by: madankumar.t@hp
2 Replies
10. UNIX for Beginners Questions & Answers
Good Afternoon Team -
I"m asking for assistance on a piece of code to populate two values in an XML file. I have it working perfectly using CScript for DOS, but I have a need to do that same process in a Linux environment.
Here is the XML I need to modify:
<?xml version="1.0"... (5 Replies)
Discussion started by: SIMMS7400
5 Replies
LEARN ABOUT DEBIAN
tm::index::match
TM::Index::Match(3pm) User Contributed Perl Documentation TM::Index::Match(3pm)
NAME
TM::Index::Match - Topic Maps, Indexing support (match layer)
SYNOPSIS
# somehow get a map (any subclass of TM will do)
my $tm = ...
# one option: create a lazy index which learns as you go
use TM::Index::Match;
my $idx = new TM::Index::Match ($tm);
# for most operations which involve match_forall to be called
# reading and querying the map should be much faster
# learn about some statistics, what keys are most likely to be useful
my @optimized_keys = @{ $stats->{proposed_keys} };
# another option: create an eager index
my $idx = new TM::Index::Match ($tm, closed => 1);
# pre-populate it, use the proposed keys
$idx->populate (@optimized_keys);
# this may be a lengthy operation if the map is big
# but then the index is 'complete'
# query map now, should also be faster
# getting rid of an index explicitly
$idx->detach;
# cleaning an index
$idx->discard;
DESCRIPTION
This index implements a generic query cache which can capture all queries not handled by more specific indices. This class inherits
directly from TM::Index.
INTERFACE
Constructor
The constructor/destructors are the same as that described in TM::Index.
Methods
populate
$idx->populate (@list_of_keys)
To populate the index with canned results this method can be invoked. At this stage it is not very clever and may take quite some time
to work its way through a larger map. This is most likely something to be done in the background.
The list of keys to be passed in is a bit black magic. Your current best bet is to look at the index statistics method, and retrieve a
proposed list from there:
@optimized_keys = @{ $stats->{proposed_keys} };
$idx->populate (@optimized_keys[0..2]); # only take the first few
If this list is empty, nothing clever will happen.
statistics
$hashref = $idx->statistics
This returns a hash containing statistical information about certain keys, how much data is behind them, how often they are used when
adding information to the index, how often data is read out successfully. The "cost" component can give you an estimated about the
cost/benefit.
SEE ALSO
TM, TM::Index
COPYRIGHT AND LICENSE
Copyright 200[6] by Robert Barta, <drrho@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2008-04-10 TM::Index::Match(3pm)