Jump to content

Recommended Posts

Posted

For those of you like myself, who consider themselves multi-OS capable having worked on everything from a Cyber 1900 to a W2k3 server :) ....

 

DON'T MAKE UP A LINUX SCRIPT USING A WINDOWS EDITOR AND EXPECT IT TO WORK WHEN RUN ON A LINUX BOX :( :( :(

 

Why?

 

Basically, your Linux scripts end up having a before each line and gives errors or even worse results :( :(

 

Hope my experience helps someone else :)

 

And sorry to Geoff once again :)

 

regards

 

Simon

 

PS At ZH - still hitting image limit with my smileys!

Posted

Out of interest what editor were you using? I'd say it's probably more related to that than a specific *nix - windows issue.

 

Cheers

Jona

Posted
I had this problem at one point, notepad and other windows editors all seem to offend as they save the file with these little buggers on each line. The solution was to open the files in a linux editor and just scroll down with the cursor line by line at which point the editor removed the characters. Re-saving the file after this made them function.
Posted
It depends on the editor really - better editors allow you to save in 'unix text' format, otherwise known as the proper way of doing it. Notepad is terrible for that problem.
  • 3 weeks later...
Posted

Ta for replies - I'm trying out Notepad++ as its in the PortableApps suite so I can just stick it on the USB stick I use for my eeePC scripts and run it from there when I need to edit from Windows.

 

regards

 

Simon

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...