Re: [Netnice-kernels] Re: Netnice internals
Status: Alpha
Brought to you by:
taost6
From: Takashi O. <ta...@cs...> - 2004-11-09 16:21:42
|
doesn't your strategy on ksh (overriding of parsing output) work, here? if we cannot easily modify ksh and bash, is it hard to port FreeBSD/sh onto OpenBSD and Linux? i personally prefer the "@xxxMbps" specification... -- taka Sho Fujita wrote: > > >>>p.p.s. can you suggest/specify a shell program we need to modify for linux? > >>> bash? bsh? ksh? > >>> > >>Most Linux systems use bash as the shell. > > > >okay. fujita-kun, is bash an easy case? what do we need to do first? > >any suggestion? > > > I have no idea about bash. But to implement @<bandwidth> expression, we > have to modify the parser of bash. And It will be a difficult task. > Then, I have a suggestion about the design of bandwidth configuration. > How about using environment variables? A sample expression follows. > > BW=10Mbps ftp example.com > In this approach, we don't have to modify the parser. Moreover, if a > shell which executes a netnice-enabled script doesn't indeed support > netnice, It simply excutes the command without bandwidth limitation. We > can reduce adverse effects of passing @<bandwidth> as a argument to the > command. |