Is there any program/code/software which can give me the secondary structure region in a given PDB file ?

like :
./ executable pdb1.pdb
answer would be :

alpha helical : 1- 8 residues
beta sheet : 17-29 residues
etc... so on

OR can this be done in Pymol ,I tried using dss but I guess it's purpose in quiet entirely different
Please advise
I have large number of PDBs of my long protein and need to analyze this secondary structure content in them and is looking for some small C or Python Code/Binary for it.