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
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
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.
>> >
>
> 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
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
> >>> #!/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
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.
> 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
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
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
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
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
12 matches
Mail list logo