Re: [9fans] writing to /dev/$winid/addr

2014-04-23 Thread Alexander Kapshuk
I'm sorry I confused you. In my second email I did mention that the script was used to set a prompt and an acme window name when running win and being logged onto UNIX. On Thu, Apr 24, 2014 at 7:18 AM, Jacob Todd wrote: > Then why did you say it was rc? What's wrong with you. > > On Apr 24, 2014

Re: [9fans] writing to /dev/$winid/addr

2014-04-23 Thread Jacob Todd
Then why did you say it was rc? What's wrong with you. On Apr 24, 2014 12:18 AM, "Alexander Kapshuk" wrote: > That's OK. It's actually ksh on AIX. > > Thanks for your feedback anyway. > > > On Wed, Apr 23, 2014 at 10:34 PM, erik quanstrom > wrote: > >> >>> #!/bin/rc > >> >>> { > >> >>> echo 'ec

Re: [9fans] writing to /dev/$winid/addr

2014-04-23 Thread Alexander Kapshuk
That's OK. It's actually ksh on AIX. Thanks for your feedback anyway. On Wed, Apr 23, 2014 at 10:34 PM, erik quanstrom wrote: >> >>> #!/bin/rc >> >>> { >> >>> echo 'echo $SYSNAME!`uname -n`!$USER' >> >>> echo 'PS1='':; '' PS2='' ''' >> >>> } >/dev/$winid/body >> > this is not valid rc. >> > >

Re: [9fans] What happened on lib9p?

2014-04-23 Thread kokamoto
> I'm not sure what you mean. I have only one 9front machine with a > disk, all other are diskless and work fine. Do you network boot those diskless machine? When I tried I could use drawterm, but network boot didn't. Kenji

Re: [9fans] Namespace customization

2014-04-23 Thread Nick Owens
in my cpu server in a vm, i put the nic setup in /cfg/$sysname/cpustart and put the namespace setup in /lib/namespace.$sysname. /cfg/chi/cpustart: #!/bin/rc # # cpustart ## internal services auth/secstored ip/dhcpd ip/tftpd ## external network (qemu nat) bind -a '#l1' /net.alt bind -a '#I1' /ne

Re: [9fans] writing to /dev/$winid/addr

2014-04-23 Thread erik quanstrom
> >>> #!/bin/rc > >>> { > >>> echo 'echo $SYSNAME!`uname -n`!$USER' > >>> echo 'PS1='':; '' PS2='' ''' > >>> } >/dev/$winid/body > > this is not valid rc. > > > > - erik > > > If it's not too much trouble, would you mind demonstrating what valid rc > would be for the part of the script in questio

Re: [9fans] writing to /dev/$winid/addr

2014-04-23 Thread Alexander Kapshuk
On 04/23/2014 09:07 PM, erik quanstrom wrote: >> is '!' a metacharacter in regexes? regex(6) doesn't say anything about it. >> > it is not. > > however > >>> #!/bin/rc >>> { >>> echo 'echo $SYSNAME!`uname -n`!$USER' >>> echo 'PS1='':; '' PS2='' ''' >>> } >/dev/$winid/body > this is not valid rc.

Re: [9fans] writing to /dev/$winid/addr

2014-04-23 Thread erik quanstrom
> is '!' a metacharacter in regexes? regex(6) doesn't say anything about it. > it is not. however > > #!/bin/rc > > { > > echo 'echo $SYSNAME!`uname -n`!$USER' > > echo 'PS1='':; '' PS2='' ''' > > } >/dev/$winid/body this is not valid rc. - erik

Re: [9fans] writing to /dev/$winid/addr

2014-04-23 Thread Bence Fábián
is '!' a metacharacter in regexes? regex(6) doesn't say anything about it. 2014-04-23 9:29 GMT+02:00 Alexander Kapshuk : > Turns out, the reason why writing '/[A-Z]+\![a-z0-9]+\![0-9a-z]+' to > /dev/$winid/addr would fail for me is because sending a string > represented by the regular expressio

Re: [9fans] Namespace customization

2014-04-23 Thread Carlos Sánchez de La Lama
I found the answer just after posting :S > Is there a way to have $sysname available at that point? Setting sysname in plan9.ini (or in this case in pxe/ as I am netbooting) does the trick :) Carlos

[9fans] Namespace customization

2014-04-23 Thread Carlos Sánchez de La Lama
Hi all, I am trying to put some customizations to the default namespace on a cpu server with 2 nics. But I am having some problems: If i put bind -a #l1 /net.alt bind -a #I1 /net.alt on /lib/namespace, it works ok. But if I put the same two lines in /cfg/$sysname/namespace (which gets executed

Re: [9fans] writing to /dev/$winid/addr

2014-04-23 Thread Alexander Kapshuk
Turns out, the reason why writing '/[A-Z]+\![a-z0-9]+\![0-9a-z]+' to /dev/$winid/addr would fail for me is because sending a string represented by the regular expression in question to /dev/$winid/body was immediately followed by writing the regexp to addr. Putting a while loop on the 'echo regexp