LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 11-03-2013, 02:52 PM   #1
sadams54
LQ Newbie
 
Registered: Sep 2012
Posts: 10

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
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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: 10

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



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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:30 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
Open Source Consulting | Domain Registration