victorianrider Posted November 6, 2010 Share Posted November 6, 2010 Hi, tried google'ing for an answer but found very little help, so decided to post here. I need a way to play a 2 second wav or mp3 file in a shell script. Is there any way to do this? I was hoping for something as simple as this if possible if ($GetHit == 'true') { $PlaySound; echo "Sound Played\n\n"; } Thanks Quote Link to comment Share on other sites More sharing options...
trq Posted November 6, 2010 Share Posted November 6, 2010 There are command line players around for Linux, what OS are you talking about? Quote Link to comment Share on other sites More sharing options...
victorianrider Posted November 6, 2010 Author Share Posted November 6, 2010 There are command line players around for Linux, what OS are you talking about? Windows 7, I just need it to play a sound if a certain argument is true. I can do it in apache quite easily with a simple html code, but this script runs a lot better in CLI. Quote Link to comment Share on other sites More sharing options...
trq Posted November 6, 2010 Share Posted November 6, 2010 You will need to find a cli player for windows (im not a windows user). Windows media player might even except command line arguments, you'll need to check that out. Quote Link to comment Share on other sites More sharing options...
victorianrider Posted November 9, 2010 Author Share Posted November 9, 2010 You will need to find a cli player for windows (im not a windows user). Windows media player might even except command line arguments, you'll need to check that out. Ok thank you very much Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.