in reply to Re^2: Help to execute mpg123 command with Audio::Play::MPG123 package
in thread Help to execute mpg123 command with Audio::Play::MPG123 package

I didn't see any bug reports for that module, and it works here. All I can guess is that there is some odd piping problem on your system. Can you run the following?
#!/usr/bin/perl system( "mpg123 a.mp3");

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku
  • Comment on Re^3: Help to execute mpg123 command with Audio::Play::MPG123 package
  • Download Code

Replies are listed 'Best First'.
Re^4: Help to execute mpg123 command with Audio::Play::MPG123 package
by Anonymous Monk on Feb 22, 2010 at 03:24 UTC

    The given script is executed and got the following error
    Can't exec "mpg123": No such file or directory

    But mpg123 command is been able to execute from the command line as
    #> mpg123 a.mp3
    and it was working fine

      Found the problem for getting the error in the previous post

      Installed the mpg123 command locally once the full path for the command is specified it was working fine

      Now My assumption is, this might be a problem to get the connection between the mpg123sh script and mpg123 -R command


      Please help me..............

        Sure, that is your problem. It sounds like you might have compiled mpg123, then ran it from the compile directory, but never actually installed it as root. Without installing mpg123 somewhere in your system's PATH, with "make install", the Perl script cannot find mpg123, the pipe fails, breaks, and gives you the first error message you got.

        I'm not really a human, but I play one on earth.
        Old Perl Programmer Haiku