Re: Best way to edit Linux files in z/VM 3270

2016-09-26 Thread Martha McConaghy
I prefer ed, myself. It reminds me of the old days, before we had full screen editors. Screw up enough fstab or network config files and you get real good at it. Always impresses my younger colleages when I can fix a fstab with a few keystrokes, even on their precious non-z based Linux servers.

Re: Best way to edit Linux files in z/VM 3270

2016-09-23 Thread Tore Agblad
] On Behalf Of Robert J Brenneman Sent: den 22 september 2016 7:08 To: LINUX-390@VM.MARIST.EDU Subject: Re: Best way to edit Linux files in z/VM 3270 the /best/ way to edit linux files on 3270 is not to. Plan ahead and make backup copies of important config files before making changes and rebooting so

Re: Best way to edit Linux files in z/VM 3270

2016-09-22 Thread Robert J Brenneman
the /best/ way to edit linux files on 3270 is not to. Plan ahead and make backup copies of important config files before making changes and rebooting so you can just rename the backup back in place. but when one must, ed is available. You have to think of it as a typewriter though. It is not

Re: Best way to edit Linux files in z/VM 3270

2016-09-21 Thread Berry van Sleeuwen
Indeed, sed/awk can be used. Or check out the rpl package, but still that is just a command to replace strings from the command line, just like sed. The only times I need to use the 3270 console is when the network (ssh) is not available. In that case we have the option to shutdown the

Re: Best way to edit Linux files in z/VM 3270

2016-09-21 Thread Bruce Hayden
Also remember that for ".conf" files that are assigning values to environment variables, last assignment wins. So, sometimes I just use "echo" to append a new value to the file so that I can get the system up. (3270 copy and paste also helps input the line.) Then later on I use vi to remove the

Re: Best way to edit Linux files in z/VM 3270

2016-09-20 Thread Dave Jones
I think it's always a good idea to have a Linux terminal server available for just such instances when you *can't* reach the z/Linux guest via the network. There is a short writeup of how to build a terminal server here: http://www.vmworkshop.org/docs/2014/24dH6VdP.pdf Have a good one. DJ On

Re: Best way to edit Linux files in z/VM 3270

2016-09-20 Thread Rick Troth
Several good responses, perhaps disjoint. Summary at end. On 09/20/2016 03:35 PM, Michel Beaulieu wrote: > Are you? > A) logon to a Linux console, using linemode Linux? > or > B) a CMS users that can access Linux? > -- > What kind of files are we talking about: standard ASCII files or

Re: Best way to edit Linux files in z/VM 3270

2016-09-20 Thread Brad Hinson
Another option is the HMC ASCII console: http://www.ibm.com/support/knowledgecenter/linuxonibm/com.ibm.linux.z.lgdd/lgdd_c_con_access_zvm_hmc.html Since it's fullscreen it will allow vi as well. Brad Hinson Solution Architect, Red Hat (919) 360-0443 On Tue, Sep 20, 2016 at 2:22 PM, Rogério

Re: Best way to edit Linux files in z/VM 3270

2016-09-20 Thread Rogério Soares
Set iucv on your servers... Vi works perfectly! Em ter, 20 de set de 2016 17:01, Marcy Cortes escreveu: > There's just mainly one sed command that i've needed in order to fix > enough to get the network up. > > sed -i -e 's/oldstring/newstring/' filename > >

Re: Best way to edit Linux files in z/VM 3270

2016-09-20 Thread Marcy Cortes
There's just mainly one sed command that i've needed in order to fix enough to get the network up. sed -i -e 's/oldstring/newstring/' filename That's generally been enough to get me through say bad IP addresses or gateway settings. -Original Message- From: Linux on 390 Port

Re: Best way to edit Linux files in z/VM 3270

2016-09-20 Thread Michel Beaulieu
riu...@gmail.com > Subject: Re: Best way to edit Linux files in z/VM 3270 > To: LINUX-390@VM.MARIST.EDU > > There's no "best way", there's only less bad way... 3270 is not a full > screen terminal, so anything expecting a full screen will get stuck. This > includes emacs

Re: Best way to edit Linux files in z/VM 3270

2016-09-20 Thread Mark Post
>>> On 9/20/2016 at 03:01 PM, "Diep, David (OCTO-Contractor)" >>> wrote: > Hi everyone, > > I've searched everywhere and I cannot find for editing Linux files while > logged in with 3270. Vi will just get me stuck. I looked at 'ed', but I get > stuck as well... any

Re: Best way to edit Linux files in z/VM 3270

2016-09-20 Thread Mauro Souza
There's no "best way", there's only less bad way... 3270 is not a full screen terminal, so anything expecting a full screen will get stuck. This includes emacs, vi/vim, nano, pine... You can use sed, grep and awk. Save a backup copy, use sed/awk combo to parse the lines and change whatever is

Re: Best way to edit Linux files in z/VM 3270

2016-09-20 Thread Harley Linker
The only option that I'm aware of is the 'sed' command. Harley Linker -Original Message- From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf Of Diep, David (OCTO-Contractor) Sent: Tuesday, September 20, 2016 2:02 PM To: LINUX-390@VM.MARIST.EDU Subject: Best way to edit