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.
] 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
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
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
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
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
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
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
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
>
>
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
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
>>> 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
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
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
14 matches
Mail list logo