Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: running applicaitons from command line

  1. #1
    Join Date
    Jul 2010
    Beans
    98

    running applicaitons from command line

    I have a folder of .mp3 files . Now I want to open these
    files through media player from the command line itself
    without going to the folder through gui and then clicking
    on the song. How to do this??

  2. #2
    Join Date
    Feb 2008
    Beans
    5,636

    Re: running applicaitons from command line

    Supposing you use vlc
    Code:
    vlc /path-to-folder/*.mp3

  3. #3
    Join Date
    Aug 2011
    Location
    /eu/uk/sco/gla/127.0.0.1
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Wink Re: running applicaitons from command line

    Quote Originally Posted by TeoBigusGeekus View Post
    Supposing you use vlc
    Code:
    vlc /path-to-folder/*.mp3
    +1 - should work. if all are actual MP3...

    p.s. dont forget:

    sudo apt-get install mplayer-nogui ubuntu-restricted-extras
    Last edited by Johnb0y; August 22nd, 2011 at 06:58 PM.
    Johnb0y

    Linux box is better than a woman because when you screw up with it, at least you get an error message!

  4. #4
    Join Date
    Oct 2006
    Beans
    74

    Re: running applicaitons from command line

    There is a MP3 player out there for the command line too - if that's what you are looking for.

    Dang, I forget the name though.

    Check this thread too: http://ubuntuforums.org/showthread.php?t=1573685
    Disclaimer: I'm still a bit of a Linux/Ubuntu noob myself!

  5. #5
    Join Date
    Nov 2010
    Location
    India
    Beans
    Hidden!

    Re: running applicaitons from command line

    Quote Originally Posted by Johnb0y View Post
    +1 - should work. if all are actual MP3...

    p.s. dont forget:

    sudo apt-get install mplayer-nogui ubuntu-restricted-extras
    hey
    thanks you for this , but
    my system saying its not available , what i've to do now ?

    sudo apt-get install mplayer-nogui ubuntu-restricted-extras

    Code:
    [sudo] password for assassin: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package mplayer-nogui is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    However the following packages replace it:
      mplayer
    
    E: Package 'mplayer-nogui' has no installation candidate
    Dont miss anything even it is small. one small pin is enough to bring down a man.


  6. #6
    Join Date
    Nov 2010
    Location
    India
    Beans
    Hidden!

    Re: running applicaitons from command line

    aah good news is mplayer is doing the job as you mentioned ,.
    i think sudo apt-get install mplayer-nogui ubuntu-restricted-extras no need . now i am playing through terminal it self .

    how can i control volume through terminal ?
    Dont miss anything even it is small. one small pin is enough to bring down a man.


  7. #7
    Join Date
    Jun 2011
    Location
    Grand Forks, ND
    Beans
    113
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: running applicaitons from command line

    Code:
    alsamixer
    Should do it for you.

  8. #8
    nmaster is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Jun 2009
    Beans
    718

    Re: running applicaitons from command line

    gnome-open is also very useful. it'll use the default application settings. also, if you close the terminal, the application will stay open. it'll also work on things other than a mp3s.
    Code:
    gnome-open file

  9. #9
    nmaster is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Jun 2009
    Beans
    718

    Re: running applicaitons from command line

    Quote Originally Posted by raja.genupula View Post
    hey
    Code:
    sudo apt-get install mplayer-nogui ubuntu-restricted-extras
    [sudo] password for assassin: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package mplayer-nogui is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    However the following packages replace it:
      mplayer
    
    E: Package 'mplayer-nogui' has no installation candidate
    Quote Originally Posted by raja.genupula View Post
    aah good news is mplayer is doing the job as you mentioned ,.
    you should really learn to read error messages that you get. in this case, it tells you exactly what to do and there was no reason to post anything

  10. #10
    nmaster is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Jun 2009
    Beans
    718

    Re: running applicaitons from command line

    Quote Originally Posted by Neoncamouflage View Post
    Code:
    alsamixer
    Should do it for you.
    here's a little wrapper script i use sometimes to change the master volume and post a notification. its not much, but it'll give you the basics for using amixer to set the master volume.
    Code:
    ./volume.sh up   # increase volume by 3%
    ./volume.sh down # decrease volume by 3%
    ./volume.sh mute # mute/unmute volume
    Attached Files Attached Files

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •