TeamSpeak with ET with a SB Live!

Peter Garrett peter.garrett at optusnet.com.au
Tue Sep 13 04:46:12 BST 2005


On Mon, 12 Sep 2005 09:44:35 -0700
Daniel Gilbert <ubuntu at danielgilbert.net> wrote:

> On Mon, 2005-09-12 at 12:10 -0400, Scott J. Henson wrote:
> > Daniel Gilbert wrote:
> > > On Mon, 2005-09-12 at 04:46 -0500, Russ wrote:
> > > 
> > >>Ok, So I'm trying to get my sound to work in tc:e while running
> > >>teamspeak, I'm following what I read and what people say to do in the
> > >>forums, except when I try to do this.
> > >>I have a sb live! card and sound works everywhere else.
> > >>
> > >>
> > >>sudo echo "et.x86 0 0 direct">/proc/asound/card0/pcm0p/oss
> > >>bash: /proc/asound/card0/pcm0p/oss: Permission denied
> > >>
> > >>sudo echo "et.x86 0 0 disable">/proc/asound/card0/pcm0c/oss
> > >>bash: /proc/asound/card0/pcm0c/oss: Permission denied
> > >>
> > >>Any Idea as to what I can do about this, since it seems to be the key
> > >>to getting this to work.
> > >>
> > > 
> > > 
> > > I have recently had this problem.
> > > 
> > > Im not sure why sudo doesnt work in this case, but if you echo these
> > > commands (minus the sudo) from a root shell they work with no permission
> > > errors.
> > 
> > This is because you run the command echo as root,but then the shell
> > redirect is a function of the shell you are in, which at this time is
> > running as you. So, you don't have permision to write to the file.
> > 
> 
> Ahh.. Thanks, that makes a lot of sense!  Is there any command line
> workaround for this?  I suppose it may be easiest to make a small script
> to run with sudo when needed.
> 

You can use the "tee" command something like

echo "foo" | sudo tee /path/to/file

Peter

-- 

Linux User #343161 




More information about the ubuntu-users mailing list