What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Editor for a user scripts files.

fedez16

Occasional Visitor
Can i use windows notepad to write a user script file and copy it in JFFS partition? otherwise which editor can I use from windows?
 
Can i use windows notepad to write a user script file and copy it in JFFS partition? otherwise which editor can I use from windows?

No. Notepad saves in Windows format, with no option for switching to a UNIX format.

I recommend Notepad++, which is free.
 
I would also recommend WinSCP, which will not only edit in the correct format, but automatically copy it to the router for you.
 
No. Notepad saves in Windows format, with no option for switching to a UNIX format.

I recommend Notepad++, which is free.
Just remember to change the default setting at Settings>Preferences>New Document>Format (Line ending) to "Unix/OSX". This setting can be verified/changed for just the current file at Edit>EOL Conversion.
 
wordpad does also the job very well.
GS
 
wordpad does also the job very well.
Wordpad is a bad choice because it saves files with DOS/Windows EOL characters rather than Unix (same as Notepad). This will cause problems like jffs scripts not running.
 
Wordpad is a bad choice because it saves files with DOS/Windows EOL characters rather than Unix (same as Notepad). This will cause problems like jffs scripts not running.

oppps ,sorry you are right, it is OK just for viewing on windows
 
oppps ,sorry you are right, it is OK just for viewing on windows
Yes Wordpad is strange like that. It will open and display Unix type files correctly (unlike Notepad), but it does so by converting it to Windows format. Meaning that if you save it back again you can run into problems.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top