Chuck Bunn
2005-Nov-15 09:19 UTC
[Asterisk-Users] Editing Asterisk config files with WORD Pad
Hi, I have tried editing some Asterisk config files (ie sip.conf) in MS Word Pad and I have saved the files as 'Unicode Text Document' with quotes around the full file name => "sip.conf" and then uploaded the files to a Linux server using FileZilla. When I do this the config files fail to work. Although I am somewhat proficient at using 'vi' I find it easier to cut and paste with Word Pad (I know I can cut and paste with 'vi'... ). Is this possible to do or am I all wet... Thanks
Jason Pyeron
2005-Nov-15 09:56 UTC
[Asterisk-Users] Editing Asterisk config files with WORD Pad
a unicode document comes in two flavors UTF8 and UCS2 in windows UTF8 "may" work, but UCS2 cannot work, as it is 2 bytes per character. UTF8 will not work if wordpad puts a byte order sentinal at the begining or if you use any characters above 0x7e (or 0x7f?) use ascii (DOS format) to save your files, but beware of line ending problems... why not just use nano/pico? On Tue, 15 Nov 2005, Chuck Bunn wrote:> Hi, > > I have tried editing some Asterisk config files (ie sip.conf) in MS Word Pad > and I have saved the files as 'Unicode Text Document' with quotes around the > full file name => "sip.conf" and then uploaded the files to a Linux server > using FileZilla. When I do this the config files fail to work. Although I am > somewhat proficient at using 'vi' I find it easier to cut and paste with Word > Pad (I know I can cut and paste with 'vi'... ). Is this possible to do or am > I all wet... > > Thanks > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Partner & Sr. Manager 7 West 24th Street #100 - - +1 (443) 269-1555 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited.
Jonathan k. Creasy
2005-Nov-15 10:03 UTC
[Asterisk-Users] Editing Asterisk config files with WORD Pad
Use notepad if you must edit them on a windows box. Nano/Pico/Joe are pretty user friendly editors for the *nix environment. -Jonathan> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Chuck Bunn > Sent: Tuesday, November 15, 2005 11:19 AM > To: Asterisk - Users > Subject: [Asterisk-Users] Editing Asterisk config files with WORD Pad > > Hi, > > I have tried editing some Asterisk config files (ie sip.conf) in MSWord> Pad and I have saved the files as 'Unicode Text Document' with quotes > around the full file name => "sip.conf" and then uploaded the files toa> Linux server using FileZilla. When I do this the config files fail to > work. Although I am somewhat proficient at using 'vi' I find it easier > to cut and paste with Word Pad (I know I can cut and paste with'vi'...> ). Is this possible to do or am I all wet... > > Thanks > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
asterisk
2005-Nov-15 10:14 UTC
[Asterisk-Users] Editing Asterisk config files with WORD Pad
You can but I find it easiest to use WinSCP for editing. Navagate to the file you want to edit and right click on it and select edit. When done click the little floppy icon and it is saved directly to the server.> Hi, > > I have tried editing some Asterisk config files (ie sip.conf) in MS Word > Pad and I have saved the files as 'Unicode Text Document' with quotes > around the full file name => "sip.conf" and then uploaded the files to a > Linux server using FileZilla. When I do this the config files fail to > work. Although I am somewhat proficient at using 'vi' I find it easier > to cut and paste with Word Pad (I know I can cut and paste with 'vi'... > ). Is this possible to do or am I all wet... > > Thanks > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.362 / Virus Database: 267.13.2/170 - Release Date: 11/15/2005 > >
Mojo with Horan & Company, LLC
2005-Nov-15 10:34 UTC
[Asterisk-Users] Editing Asterisk config files with WORD Pad
If you prefer the capabilities of the gui, I'd recommend against wordpad. You don't want (can't have?) the wrong line termination chars in there. I have found crimson editor to be quick-loading and easy to use - www.crimsoneditor.com - small memory footprint. Conversely, I often use nano for very minor .conf editing. It's Ctrl-K and Ctrl-U functions are fairly easy ways to copy blocks of text around a file. And if you open two terminals, with nano in each, you could of course copy-n-paste between windows with your mouse. Moj Chuck Bunn wrote:> Hi, > > I have tried editing some Asterisk config files (ie sip.conf) in MS Word > Pad and I have saved the files as 'Unicode Text Document' with quotes > around the full file name => "sip.conf" and then uploaded the files to a > Linux server using FileZilla. When I do this the config files fail to > work. Although I am somewhat proficient at using 'vi' I find it easier > to cut and paste with Word Pad (I know I can cut and paste with 'vi'... > ). Is this possible to do or am I all wet... > > Thanks > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Mojo <mojo@horanappraisals.com> Office Manger, Horan & Company, LLC (907) 747-6666 x112
trixter aka Bret McDanel
2005-Nov-15 10:35 UTC
[Asterisk-Users] Editing Asterisk config files with WORD Pad
On Tue, 2005-11-15 at 11:56 -0500, Jason Pyeron wrote:> a unicode document comes in two flavors UTF8 and UCS2 in windows UTF8 > "may" work, but UCS2 cannot work, as it is 2 bytes per character. > > UTF8 will not work if wordpad puts a byte order sentinal at the begining > or if you use any characters above 0x7e (or 0x7f?) > > use ascii (DOS format) to save your files, but beware of line ending > problems... >dos2unix (if installed) can fix the line termination problem.. Dos/win likes to use \r\n (^M^J) to terminate. Unix likes just \n, and traditional mac likes just \r. There is a something you can do if dos2unix isnt installed using tr, which will do the same thing. cat file | tr -d \\r > file.new ; mv file.new file Note if you are doing this on a mac that does line terminators as just \r you need to replace that with \n. This can be accomplished by: cat file | tr \\r \\n > file.new ; mv file.new file -- Trixter http://www.0xdecafbad.com Bret McDanel UK +44 870 340 4605 Germany +49 801 777 555 3402 US +1 360 207 0479 or +1 516 687 5200 FreeWorldDialup: 635378 http://www.sacaug.org/ Sacramento Asterisk Users Group -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20051115/510a4402/attachment.pgp
Will Glass-Husain
2005-Nov-15 11:17 UTC
[Asterisk-Users] Re: Editing Asterisk config files with WORD Pad
On Windows, I really like TextPad (shareware - www.textpad.com ) for editing text files. It handles the line ending issue well (you can save in PC or unix format). It has great search and replace functionality. And you can edit a bunch of files at once. Best, WILL> Message: 1 > Date: Tue, 15 Nov 2005 09:19:24 -0700 > From: Chuck Bunn <chuck.bunn@networkdoc.com> > Subject: [Asterisk-Users] Editing Asterisk config files with WORD Pad > To: Asterisk - Users <asterisk-users@lists.digium.com> > Message-ID: <437A0A8C.90202@networkdoc.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi, > > I have tried editing some Asterisk config files (ie sip.conf) in MS Word > Pad and I have saved the files as 'Unicode Text Document' with quotes > around the full file name => "sip.conf" and then uploaded the files to a > Linux server using FileZilla. When I do this the config files fail to > work. Although I am somewhat proficient at using 'vi' I find it easier > to cut and paste with Word Pad (I know I can cut and paste with 'vi'... > ). Is this possible to do or am I all wet... > > Thanks >
Colin Anderson
2005-Nov-15 11:48 UTC
[Asterisk-Users] Editing Asterisk config files with WORD Pad
The best freeware editor I have ever seen for Windows is Crimson Editor: www.crimsonedit.com Line numbering, syntax detect, syntax highlighting, platform / LF agnostic, last file edited automatic open, the list goes on. I WinSCP my .conf files to Windows, edit them with Crimson, upload them back. -----Original Message----- From: Chuck Bunn [mailto:chuck.bunn@networkdoc.com] Sent: Tuesday, November 15, 2005 11:14 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Editing Asterisk config files with WORD Pad Hi, I just tried WINSCP and it worked great it even allowed me to take my previously created files in Windows and correctly format them for Linux. Thanks _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
trixter aka Bret McDanel
2005-Nov-15 12:07 UTC
[Asterisk-Users] Re: Editing Asterisk config files with WORD Pad
On Tue, 2005-11-15 at 10:17 -0800, Will Glass-Husain wrote:> On Windows, I really like TextPad (shareware - www.textpad.com ) for editing > text files.I like edlin cause its old school :P -- Trixter http://www.0xdecafbad.com Bret McDanel UK +44 870 340 4605 Germany +49 801 777 555 3402 US +1 360 207 0479 or +1 516 687 5200 FreeWorldDialup: 635378 http://www.sacaug.org/ Sacramento Asterisk Users Group -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20051115/d13090f9/attachment.pgp
Colin Anderson
2005-Nov-15 12:57 UTC
[Asterisk-Users] Re: Editing Asterisk config files with WORD Pad
* I like edlin cause its old school :P copy con extensions.conf ^z Better not screw up! -----Original Message----- From: trixter aka Bret McDanel [mailto:trixter@0xdecafbad.com] Sent: Tuesday, November 15, 2005 12:08 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Re: Editing Asterisk config files with WORD Pad _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
trixter aka Bret McDanel
2005-Nov-15 13:53 UTC
[Asterisk-Users] Re: Editing Asterisk config files with WORD Pad
On Tue, 2005-11-15 at 12:57 -0700, Colin Anderson wrote:> * I like edlin cause its old school :P > > copy con extensions.conf ^z > > Better not screw up!"command not found" :P -- Trixter http://www.0xdecafbad.com Bret McDanel UK +44 870 340 4605 Germany +49 801 777 555 3402 US +1 360 207 0479 or +1 516 687 5200 FreeWorldDialup: 635378 http://www.sacaug.org/ Sacramento Asterisk Users Group -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20051115/bd14497e/attachment.pgp
Paul
2005-Nov-15 14:30 UTC
[Asterisk-Users] Re: Editing Asterisk config files with WORD Pad
trixter aka Bret McDanel wrote:>On Tue, 2005-11-15 at 12:57 -0700, Colin Anderson wrote: > > >>* I like edlin cause its old school :P >> >>copy con extensions.conf ^z >> >>Better not screw up! >> >> > >"command not found" :P > >Get modern! Just set up an email-based template system like the one I have to use to change records at ARIN: Template: ARIN-ORG-SIMPLE-3.2.3 ********************************************************************** ** As of June 2005 ** ** ** ** Enter all information to the right of the colon (:). ** ** ** ** DO NOT modify the format of this template in any way. ** ** ** *********************** IDENTIFICATION SECTION *********************** 1. ** REQUIRED. Specify N for New, M for Modify, or R for Remove. Registration Action:M 2. ** REQUIRED FOR MODIFY OR REMOVE. Enter organization ID. Must be ** blank for new. Org ID:ACMEWI-44 3. ** REQUIRED FOR NEW. Enter your organization name, using no more ** than 150 characters. Org Name:Acme Widgets and so on .....
Steven
2005-Nov-15 14:48 UTC
[Asterisk-Users] Re: Editing Asterisk config files with WORD Pad
I used to use ConText, but now I prefer Notepad++. Both are free and for Windows. They both let you easily edit Unix formatted text files. -- -- Steven May you have the peace and freedom that come from abandoning all hope of having a better past. --- - --- - - - - - - - -- - - - --- - ------ - - --- - - -- - - - -- - - - "Chuck Bunn" <chuck.bunn@networkdoc.com> wrote in message news:437A0A8C.90202@networkdoc.com...> Hi, > > I have tried editing some Asterisk config files (ie sip.conf) in MS Word > Pad and I have saved the files as 'Unicode Text Document' with quotes > around the full file name => "sip.conf" and then uploaded the files to a > Linux server using FileZilla. When I do this the config files fail to > work. Although I am somewhat proficient at using 'vi' I find it easier to > cut and paste with Word Pad (I know I can cut and paste with 'vi'... ). Is > this possible to do or am I all wet... > > Thanks > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >