Discussion:
Problem with editing file on container
Naas Si Ahmed
2017-12-09 18:59:44 UTC
Permalink
Hi,

I'm trying to modify a file using the command vi or nano to edit a file on
a juju container, but I'm receiving an error such : terminal unknown.

Is there any way that I can use to edit a file graphically from another
juju container ?

The juju command I used is :
Juju run "vi /etc/conf.rules" --machine =8

Thank you,
Ahmed.
Tom Barber
2017-12-09 21:06:12 UTC
Permalink
You should be able run

export TERM=xterm

or similar and then open the editor.

Tom
Post by Naas Si Ahmed
Hi,
I'm trying to modify a file using the command vi or nano to edit a
file on a juju container, but I'm receiving an error such : terminal
unknown.
Is there any way that I can use to edit a file graphically from
another juju container ?
Juju run "vi /etc/conf.rules" --machine =8
Thank you,
Ahmed.
--
Spicule Limited is registered in England & Wales. Company Number: 09954122.
Registered office: First Floor, Telecom House, 125-135 Preston Road,
Brighton, England, BN1 6AF. VAT No. 251478891.


All engagements are subject to Spicule Terms and Conditions of Business.
This email and its contents are intended solely for the individual to whom
it is addressed and may contain information that is confidential,
privileged or otherwise protected from disclosure, distributing or copying.
Any views or opinions presented in this email are solely those of the
author and do not necessarily represent those of Spicule Limited. The
company accepts no liability for any damage caused by any virus transmitted
by this email. If you have received this message in error, please notify us
immediately by reply email before deleting it from your system. Service of
legal notice cannot be effected on Spicule Limited by email.
Andrew Wilkins
2017-12-11 00:54:46 UTC
Permalink
Post by Naas Si Ahmed
Hi,
I'm trying to modify a file using the command vi or nano to edit a file on
a juju container, but I'm receiving an error such : terminal unknown.
In recent versions of Juju, "juju run" does not offer the ability to run
interactive commands.

Is there any way that I can use to edit a file graphically from another
Post by Naas Si Ahmed
juju container ?
You can use "juju ssh" to SSH to the machine: "juju ssh 8 vi
/etc/conf.rules".
Post by Naas Si Ahmed
Juju run "vi /etc/conf.rules" --machine =8
Thank you,
Ahmed.
--
Juju mailing list
https://lists.ubuntu.com/mailman/listinfo/juju
Loading...