Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What could have happened to Windows 7 to corrupt all perl files? 3

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
I have a very bizzare thing going on.

If I edit a perl script on my windows 7 machine, using source edit and filezilla to upload, the script no longer works and just errors in a bizzare and unrelated place.

I know this because the only change i'm making is adding an extra hash(#) to an exising comment.

I've checked i'm not uploading in binary also.

If I edit the same script in my XP VMWare environment and upload using source edit and filezilla it works fine, it's just when I use my windows 7 machine directly that i'm getting this bizzarre behaviour.

any ideas?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
Have you tried editing the file on the Win 7 machine, transfer it to the XP machine and upload it from there.
I am thinking it could be the upload process corrupting the file and not Windows 7.

Keith
 
Upload it to where (what system are you uploading it to?) Is it a line-ending problem?
 
That's what I would assume (line ending).

Vi the file on the remote system if you can, or transfer it by hand/ftp using the ascii command, or tell file-zilla to only use ascii transfer.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
I did all that (well not the vi, this is windows, so i used notepad!), as i said, it only went screwy on my windows 7 machine?

However, after some updates yesterday night when i switch off my PC to go home, this morning, i did a test and now it's working fine?

So either Filezilla went screwy or Windows 7 did, or it was related to an MS update.

I know how you can kill a script with binary transfer and not editing it as pure ascii, but it wasn't that that was the problem, it was wierd, but this morning it's now fine?

I know I can be an idiot at times and do stupid things, but this time it really was something weird happening.

Hey ho, a new dawn, a new day, and a whole bunch of new problems to work on.

cheers guys.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
One of the servers I occasionally FTP stuff too suffers from similar problems. My good old faithful DOS based FTP program (1995 vintage) messes up the line endings but only on that particular server. I updated the FTP program to the modern Windows version and that solved the problem. I have gone back to using the old one for most of my FTP transfers though as it just does the job without the bells whistles and extra key presses of the new one.

Keith
 
This is our one and only web server that i work on everyday.

That's why it was so bizzarre, worked fine Friday, didn't yesterday, working fine today , and the ONLY thing I have done , is install a few Windows 7 updates!

I'm thinking that's more coincidence that anything else, but what on earth caused this bizzarre behaviour is beyond me.

I know our Sophos is kaput, so i'm really hoping it's not some nasty playing silly buggers with our systems!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
I started using notepad++ on windows systems and now use it for my linux/unix code to (I write most of it on xp/7), it has built in ftp/sftp.

I like the color coding and autobackups!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
I tried notepad++ , didn't get on with it.

Everything has been running fine since that bizarre behaviour, I must admin, I use the old v2.2.26 of FileZilla , the new version sucks as it tries to auto upload or harrass you to upload a file the minute you change it and you can't turn that feature off.

Also sourceEdit isn't really Vista/7 compatible and you have to do a bit of jiggery pokery to get it installed and working properly.

I guess at some point I might have to bite the bullet and move onto something else.

Shame really as I really do like the old version of FileZilla and SourceEdit.

Hey Ho, I guess that's what they call progress :)

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Google Rank Extractor -> Perl beta with FusionCharts
 
You are right there, the one I use is WSFTP Pro95 - an excellent product but the newer version allows you have any number of connections open to all the diferent servers in the sites list. It might just be me, but it is bad enough sending files to the wrong directory on the same server, let alone sending files to the completly wrong site.

Bad enough if it is a data file but when you over write an index file and don't realise - hey, dat's bad! (expect 'the phone call')
I only work on one site at once, I may work on several sites in a day but one site at once is enough for me.

I am not a fan of automatic features in any software as I am old enough to decide when I want to use a particular feature.

One of my pet hates is when the computer I am working on suddenly decides to perform 'idle tasks' - It is not idle - I am using it!

Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top