LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 11-03-2013, 02:52 PM   #1
sadams54
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Rep: Reputation: Disabled
Get invalid volume specification from shell script


I am trying to make a shell script to control volume on the system.

pactl -- set-sink-volume 0 -10%

that line works perfect from the command line. However if I create a shell script I get "invalid volume specification" when I run the script. The script has only one line in it which is shown above. I am not experienced in shell scripts so if I am doing something wrong, correct me. I called the script file VDN.sh and execute using the command sh VDN.sh I am so close to finishing this project and this is what stands in my way. PLEASE HELP.

I have changed the relative volume setting to a specific one and get same error.
 
Old 11-03-2013, 04:30 PM   #2
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 2,714
Blog Entries: 3

Rep: Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626
maybe
Code:
pactl \-\- set-sink-volume 0 \-10\%
?

P.S. Which "shell"?
 
Old 11-03-2013, 08:36 PM   #3
sadams54
LQ Newbie
 
Registered: Sep 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
no joy

I tried your suggestion but still same problem. This is on Fedora 18. I was so hoping your thought would work. DARN THE LUCK
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I disable a usb port using a shell script? I'm getting Invalid argument errs abefroman Linux - Hardware 1 07-29-2013 04:45 PM
tar multiple volume archive - volume script RGummi Linux - General 2 08-31-2006 04:08 PM
Question about path specification in program/script code R00ts Programming 2 05-11-2006 04:07 AM
Invalid Unicode on DVD Disc/Volume Label DraconianTimes Linux - Software 2 11-30-2003 02:28 PM


All times are GMT -5. The time now is 02:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration