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 to linux and would like detailed instructions.
Run an executable with a Shell Script
bash;shell script;mplayer
You should use mplayer command in your script in the same way as you use it in terminal. For example:#!/bin/bash# some bash code herecd /path/to/where/you/want/to/start/mplayermplayer *# more bash code hereSee also: man mplayer.