* [9fans] get acme dir
@ 2005-05-02 0:49 YAMANASHI Takeshi
2005-05-02 3:02 ` Russ Cox
0 siblings, 1 reply; 4+ messages in thread
From: YAMANASHI Takeshi @ 2005-05-02 0:49 UTC (permalink / raw)
To: 9fans
How can a script know where in the acme directories
(/mnt/acme/*) the script runs?
I would like to write a Putcmd script which Put the
current window and invokes a specified command.
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] get acme dir
2005-05-02 0:49 [9fans] get acme dir YAMANASHI Takeshi
@ 2005-05-02 3:02 ` Russ Cox
0 siblings, 0 replies; 4+ messages in thread
From: Russ Cox @ 2005-05-02 3:02 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
> How can a script know where in the acme directories
> (/mnt/acme/*) the script runs?
>
> I would like to write a Putcmd script which Put the
> current window and invokes a specified command.
use /mnt/acme/$winid
russ
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] get acme dir
2005-05-02 3:16 YAMANASHI Takeshi
@ 2005-05-02 3:25 ` Russ Cox
0 siblings, 0 replies; 4+ messages in thread
From: Russ Cox @ 2005-05-02 3:25 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
> Thanks. My acme was so old that it didn't export winid.
> Then Putcmd is *so* trivial. You can execute "Putcmd mk".
>
> ++
> #!/bin/rc
> echo put > /mnt/acme/$winid/ctl
> $*
you could also make a Put that was echo put >/mnt/acme/$winid/ctl
and then use Put; mk. arguably having to write Put in this case is a bug.
russ
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] get acme dir
@ 2005-05-02 3:16 YAMANASHI Takeshi
2005-05-02 3:25 ` Russ Cox
0 siblings, 1 reply; 4+ messages in thread
From: YAMANASHI Takeshi @ 2005-05-02 3:16 UTC (permalink / raw)
To: 9fans
> > How can a script know where in the acme directories
> > (/mnt/acme/*) the script runs?
:
> use /mnt/acme/$winid
Thanks. My acme was so old that it didn't export winid.
Then Putcmd is *so* trivial. You can execute "Putcmd mk".
++
#!/bin/rc
echo put > /mnt/acme/$winid/ctl
$*
--
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-05-02 3:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-02 0:49 [9fans] get acme dir YAMANASHI Takeshi
2005-05-02 3:02 ` Russ Cox
2005-05-02 3:16 YAMANASHI Takeshi
2005-05-02 3:25 ` Russ Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).