download all mib files from a web page

2009-05-27 Thread powah
pubs/software/junos/junos94/swconfig-net-mgmt/mib-jnx-user-aaa.txt downloading ... mib-jnx-user-aaa.txt Traceback (most recent call last): File "/home/powah/python/downloadjuniper.py", line 20, in ? u=urllib2.urlopen(link) File "/usr/lib/python2.4/urllib2.py", lin

Re: download all mib files from a web page

2009-05-27 Thread powah
On May 27, 1:50 pm, Jeff McNeil wrote: > On May 27, 12:29 pm, powah wrote: > > > > > > > I want to download all mib files from the web > > page:http://www.juniper.net/techpubs/software/junos/junos94/swconfig-net-m... > > > All mib filenames are of this

Re: download all mib files from a web page

2009-05-27 Thread powah
On May 27, 12:29 pm, powah wrote: > I want to download all mib files from the web > page:http://www.juniper.net/techpubs/software/junos/junos94/swconfig-net-m... > > All mib filenames are of this format:www.juniper.net/techpubs... .txt > > I write this program but has t

Re: download all mib files from a web page

2009-05-28 Thread powah
On May 27, 3:37 pm, Scott David Daniels wrote: > powah wrote: > > ... > > I fixed one error, now if the filename is misspelled, how to ignore > > the error and continue? > > You really should go through the tutorial.  It will explain this and > other important things

change the first character of the line to uppercase in a text file

2009-06-26 Thread powah
How to change the first character of the line to uppercase in a text file? e.g. input is: abc xyz Bd ef gH ij output should be: Abc xyz Bd ef GH ij -- http://mail.python.org/mailman/listinfo/python-list

Re: change the first character of the line to uppercase in a text file

2009-06-26 Thread powah
On Jun 26, 4:51 pm, Chris Rebert wrote: > On Fri, Jun 26, 2009 at 12:43 PM, powah wrote: > > How to change the first character of the line to uppercase in a text > > file? > > e.g. > > input is: > > abc xyz > > Bd ef > > gH ij > > > output sh