![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strange Characters After Using Notepad | dgower2 | Shell Programming and Scripting | 4 | 05-21-2009 11:01 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I am new to using UNIX and after uploading a new script to UNIX from Windows using FTP, the script doesn't always work. It seems this depends on the text editor I use and the transfer type. I understand all scripts should be transferred using ASCII, but can you advise which is the best text editor to use out of Notepad and Wordpad?
After doing some research it seems wordpad is most popular, however I had problems with this, and my script now works after opening and saving in notepad as a test document with qoutes encasing the filename. Please offer any advice on this issue. |
|
||||
|
Quote:
Quote:
As a general rule, just make sure you are always saving the script as ASCII text, and always use FTP ASCII mode (if you use Binary mode, you have to use a Windows text editor that supports Unix EOL, and save the script with Unix EOL). |
|
||||
|
hi i have a doubt
Quote:
why should you type it in wordpad or notepad and FTP it to UNIX? |
|
||||
|
Being new to UNIX, using the editor VI has previously proved to be a bit of a challenge and has taken some time to come to terms with the different keys that should be used for navigating around VI.
However, since posting this topic I have been on a UNIX course and have a much better understanding now of permissions, FTP, VI and much more :-) |
|
||||
|
If you'd rather stay in the Windows GUI for your scripts in the log run...
... there are two options, and they're both freeware.
* Crimson Editor, which is so great for creating, editing and saving Unix files that I now have it set to edit practically every .dot file in my Cygwin install. * Alpine, a standalone version of Pine (Unix email client) and Pico (text editor) paired by their authors and onetime maintainers at the University of Washington. The Pico standalone app saves in UTF-8, so it might be worthwhile checking some of its saved output via cat or vi before uploading any of it. I'm partial to Pico and nano anyway, so I was very gratified to find there was a Win32 standalone of the former. Quote:
Hope this was helpful. BZT Quote:
Last edited by SilversleevesX; 05-21-2009 at 10:56 AM.. Reason: Pointed up the difference between CLI and S/A Pico |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|