I am writing a small bash script to automate transcoding CD's, which I would also like to make publicly available. For that I need to get the path where the CD is mounted by gvfs (on my machine /run/user/$USER/gvfs/cdda:host=sr0) into a variable. Is that possible at all, and if yes, how ?

  • I think this is not the best place to ask help for bash scripts. – Keith5001 Apr 19 at 15:08
  • @Keith5001 what would be a better place ? – Programmer Apr 19 at 15:09
  • stackoverflow.com – Keith5001 Apr 19 at 15:12
  • stackoverflow appears very active, so I would use a search engine to perhaps find a quieter place. eg search bash variable – Keith5001 Apr 19 at 15:19
  • @Keith5001 I think you misunderstood my question, my question isn't about how to get the output of a command into a bash variable, it's about how I can get the mount point of the CD drive. – Programmer Apr 19 at 15:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.