LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-07-2010, 02:09 PM   #1
aayu09
Member
 
Registered: Feb 2010
Posts: 30

Rep: Reputation: 15
Smile alsamixer command line


I try to use the alsamixer command line using script as follows:

Code:
#!/bin/bash
./alsamixer set Master 10%+ > /dev/null
exit 0
It is not working as I expected as I have to hit Control-C to exit the script. How can I do it using script without any user intervention?

Thanks

aayu09
 
Old 06-07-2010, 02:35 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,455

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
?? why are you sending the output to /dev/null ?
that seams odd
 
Old 06-07-2010, 02:46 PM   #3
aayu09
Member
 
Registered: Feb 2010
Posts: 30

Original Poster
Rep: Reputation: 15
As I don't need to see the graphic bars and only using command line to increase or unmute the volume. I saw this command:

./alsamixer set Master 10%+ > /dev/null

from an some post on this forum a few years ago, not sure if this is the right approach.

thanks,

aayu09
 
Old 06-07-2010, 07:43 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,191

Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
alsamixer is the console GUI version.

You want amixer

jlinkels
 
1 members found this post helpful.
Old 06-08-2010, 09:25 PM   #5
aayu09
Member
 
Registered: Feb 2010
Posts: 30

Original Poster
Rep: Reputation: 15
I downloaded the alsa-utils-1.0.23, built it, and worked fine. Thanks for the info.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
awk command line: blank line record sep, new line field sep robertmarkbram Programming 4 02-21-2010 06:25 AM
alsamixer command line arguments dereko Debian 3 09-29-2008 03:06 PM
xine command line? or some other command line only engine? lumix Linux - Software 2 08-10-2007 11:46 AM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 08:45 PM
51 characters only in the 1st Line of command line eggCover Linux - General 2 07-29-2004 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration