2
votes
2answers
63 views

How to add an audio file to a shell script

How can I add an audio file (OGG vorbis) into a shell script making the script as small as possible and at the same time being able to execute it on as most systems as possible? I want the audio file ...
1
vote
1answer
142 views

Run an executable with a Shell Script

I have mplayer installed and I want to create a simple shell script that runs in bash and executes mplayer * in the current directory. So, how to call upon mplayer in the shell script? I am a newbie ...
1
vote
1answer
146 views

while loop is running only once?

I am trying to make a clip out of video file by playing it only for certain interval. make_mclip.sh #!/bin/bash mediafile=$@ mediafile_fullpath=$PWD/./$mediafile tmpedlfile=$(mktemp) mplayer ...
3
votes
1answer
323 views

how to start from within my shell-script xterm which starts mplayer and plays the files that are the argument of the script

What I want to do: Start my script with a list of files as arguments. From within my script I want to start xterm that starts mplayer with these files. I tried several things. I call my script like ...
2
votes
2answers
823 views

How can I retain the console input in mplayer when reading from stdin?

I'm playing around with the command line interface of mplayer. I'd like to script it in the following way find /some/path/ -type f | grep -vif blacklist | mplayer -shuffle -playlist - where ...