From mboxrd@z Thu Jan 1 00:00:00 1970 From: dexen deVries To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Fri, 10 Jan 2014 11:06:59 +0100 Message-ID: <1747455.DR0KDVLvkf@coil> User-Agent: KMail/4.10.5 (Linux/3.12.0-rc6-l56; KDE/4.10.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Subject: [9fans] [p9p] restart program on Acme Load Topicbox-Message-UUID: b1c2f708-ead8-11e9-9d60-3106f5b1d025 hi list, this is plan 9 port Acme question: how do i make Acme restart applicati= on upon=20 Load? the only thing i care about is the correct working directory. i'm running `git gui' from Acme; the tag indicates it with `git' word. = upon=20 Dump, restart Acme, Load, the `git' word is recreated in tag, but the p= rogram=20 is not started. --=20 dexen deVries [[[=E2=86=93][=E2=86=92]]] From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <1747455.DR0KDVLvkf@coil> References: <1747455.DR0KDVLvkf@coil> From: =?ISO-8859-1?Q?Rub=E9n_Berenguel?= Date: Fri, 10 Jan 2014 11:38:46 +0100 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a11c1e2d2e65c0504ef9b5552 Subject: Re: [9fans] [p9p] restart program on Acme Load Topicbox-Message-UUID: b1ca08b8-ead8-11e9-9d60-3106f5b1d025 --001a11c1e2d2e65c0504ef9b5552 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I've been using Acme from p9p to interact with gnu-apl (sadly it has some quirks that make it kind of unusable...) and I am also interested in hearing of a way to do it (it was a mild pain to have to write ./apl --emacs each time I opened and closed acme or gnu-apl crashed. Ruben On Fri, Jan 10, 2014 at 11:06 AM, dexen deVries wr= ote: > hi list, > > > this is plan 9 port Acme question: how do i make Acme restart application > upon > Load? the only thing i care about is the correct working directory. > > > i'm running `git gui' from Acme; the tag indicates it with `git' word. up= on > Dump, restart Acme, Load, the `git' word is recreated in tag, but the > program > is not started. > > -- > dexen deVries > > [[[=E2=86=93][=E2=86=92]]] > > > --001a11c1e2d2e65c0504ef9b5552 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've been using Acme from p9p to interact with gnu-apl= (sadly it has some quirks that make it kind of unusable...) and I am also = interested in hearing of a way to do it (it was a mild pain to have to writ= e ./apl --emacs each time I opened and closed acme or gnu-apl crashed.

Ruben


On Fri, Jan 10, 2014 at 11:06 AM, dexen deVries <= dexen.devries@gmail.com> wrote:
hi list,


this is plan 9 port Acme question: how do i make Acme restart application u= pon
Load? the only thing i care about is the correct working directory.


i'm running `git gui' from Acme; the tag indicates it with `git'= ; word. upon
Dump, restart Acme, Load, the `git' word is recreated in tag, but the p= rogram
is not started.

--
dexen deVries

[[[=E2=86=93][=E2=86=92]]]



--001a11c1e2d2e65c0504ef9b5552-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <1747455.DR0KDVLvkf@coil> References: <1747455.DR0KDVLvkf@coil> Date: Fri, 10 Jan 2014 17:03:07 +0300 Message-ID: From: Alexander Sychev To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7b6771748661d204ef9e2f93 Subject: Re: [9fans] [p9p] restart program on Acme Load Topicbox-Message-UUID: b1f947b8-ead8-11e9-9d60-3106f5b1d025 --047d7b6771748661d204ef9e2f93 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi! It seems dump file doesn't have application-specific info - it has to start with 'e' symbol. I have manually edited my acme.dump : <--------------------------------------------------------------------> /home/santucco /usr/local/plan9/font/fixed/anon/anon.14.font /lib/font/bit/lucm/unicode.9.font 0.0000000 67.8832117 w Newcol Kill Putall Dump Exit e 0 0 0 0 0 0 0 0 0 0 Amail /home/santucco/ amail <--------------------------------------------------------------------> And Load command runs amail. But Dump command doesn't save the info back to acme.dump Maybe this is a bug in rowdump function? Best regards, santucco On Fri, Jan 10, 2014 at 1:06 PM, dexen deVries wro= te: > hi list, > > > this is plan 9 port Acme question: how do i make Acme restart application > upon > Load? the only thing i care about is the correct working directory. > > > i'm running `git gui' from Acme; the tag indicates it with `git' word. up= on > Dump, restart Acme, Load, the `git' word is recreated in tag, but the > program > is not started. > > -- > dexen deVries > > [[[=E2=86=93][=E2=86=92]]] > > > --=20 Best regards, santucco --047d7b6771748661d204ef9e2f93 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi!

It seems dump file doesn't have= application-specific info - it has to start with 'e' symbol.
=
I have manually edited my acme.dump :
<------------------= -------------------------------------------------->

/home/santucco
/usr/local/plan9/font/fix= ed/anon/anon.14.font
/lib/font/bit/lucm/unicode.9.font
= =C2=A0 0.0000000 =C2=A067.8832117
w Newcol Kill Putall Dump Exit= =C2=A0
e =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A00 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A00 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 0 =C2=A0Amail=C2=A0
/home/santucco/
amail
<---------------------------------------------------------= ----------->
And Load command runs amail.=C2=A0
But Dump command do= esn't save the info back to acme.dump

Maybe th= is is a bug in rowdump function?

Best regards,
=C2=A0 santucco


On Fri,= Jan 10, 2014 at 1:06 PM, dexen deVries <dexen.devries@gmail.com= > wrote:
hi list,


this is plan 9 port Acme question: how do i make Acme restart application u= pon
Load? the only thing i care about is the correct working directory.


i'm running `git gui' from Acme; the tag indicates it with `git'= ; word. upon
Dump, restart Acme, Load, the `git' word is recreated in tag, but the p= rogram
is not started.

--
dexen deVries

[[[=E2=86=93][=E2=86=92]]]





-- Best regards,
=C2=A0 santucco
--047d7b6771748661d204ef9e2f93-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: dexen deVries To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Fri, 10 Jan 2014 15:36:12 +0100 Message-ID: <1840571.htHekevEVy@coil> User-Agent: KMail/4.10.5 (Linux/3.12.0-rc6-l56; KDE/4.10.5; x86_64; ; ) In-Reply-To: References: <1747455.DR0KDVLvkf@coil> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Subject: Re: [9fans] [p9p] restart program on Acme Load Topicbox-Message-UUID: b208ac30-ead8-11e9-9d60-3106f5b1d025 On Friday 10 of January 2014 17:03:07 Alexander Sychev wrote: > But Dump command doesn't save the info back to acme.dump >=20 >=20 > Maybe this is a bug in rowdump function? found `dump' in acme(4) echo 'dump git gui' | 9p write acme/$winid/ctl=20 and then Dump got me close -- but the `git gui' was started in wrong dir -- in Acme's= =20 getwd() rather than window's directory. -- dexen deVries [[[=E2=86=93][=E2=86=92]]] From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <1840571.htHekevEVy@coil> References: <1747455.DR0KDVLvkf@coil> <1840571.htHekevEVy@coil> Date: Fri, 10 Jan 2014 18:10:03 +0300 Message-ID: From: Alexander Sychev To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7b6dc732e4bb6b04ef9f1eae Subject: Re: [9fans] [p9p] restart program on Acme Load Topicbox-Message-UUID: b211303a-ead8-11e9-9d60-3106f5b1d025 --047d7b6dc732e4bb6b04ef9f1eae Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Maybe it makes a sence to set the directory via 'dumpdir'? Really, it seems this is only way to set command to be executed - according to the sources, 'e' is dumped if Window::dumpstr is filled, and Window::dumpstr is filled by 'dump' command. On Fri, Jan 10, 2014 at 5:36 PM, dexen deVries wro= te: > On Friday 10 of January 2014 17:03:07 Alexander Sychev wrote: > > But Dump command doesn't save the info back to acme.dump > > > > > > Maybe this is a bug in rowdump function? > > > found `dump' in acme(4) > > echo 'dump git gui' | 9p write acme/$winid/ctl > and then Dump > got me close -- but the `git gui' was started in wrong dir -- in Acme's > getwd() rather than window's directory. > > > -- > dexen deVries > > [[[=E2=86=93][=E2=86=92]]] > > > --=20 Best regards, santucco --047d7b6dc732e4bb6b04ef9f1eae Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Maybe it makes a sence to set the directory via 'dumpd= ir'?
Really, it seems this is only way to set command to be execute= d - according to the sources, 'e' is dumped if Window::dumpstr is f= illed, and Window::dumpstr is filled by 'dump' command.=C2=A0


On Fri,= Jan 10, 2014 at 5:36 PM, dexen deVries <dexen.devries@gmail.com= > wrote:
On Friday 10 of January 20= 14 17:03:07 Alexander Sychev wrote:
> But Dump command doesn't save the info back to acme.dump
>
>
> Maybe this is a bug in rowdump function?


found `dump' in acme(4)

echo 'dump git gui' | 9p write acme/$winid/ctl
and then Dump
got me close -- but the `git gui' was started in wrong dir -- in Acme&#= 39;s
getwd() rather than window's directory.


--
dexen deVries

[[[=E2=86=93][=E2=86=92]]]





--
Best regards= ,
=C2=A0 santucco
--047d7b6dc732e4bb6b04ef9f1eae-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 10 Jan 2014 12:02:31 -0500 From: sl@9front.org To: 9fans@9fans.net Message-ID: In-Reply-To: References: <1747455.DR0KDVLvkf@coil> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] [p9p] restart program on Acme Load Topicbox-Message-UUID: b21e22a4-ead8-11e9-9d60-3106f5b1d025 You could put your long command line into a shell script that takes no arguments and run that shell script from acme's tag. sl