如何達成 樹莓派Raspbian 指令簡短化 - Linux

By Kumar
at 2017-08-10T14:04
at 2017-08-10T14:04
Table of Contents
各位大大好
最近在試作
我要使用omxplayer播放固定的影片及聲音
但要讓user可輸入簡短的指令即可達成
例如
原本要播放影片
指令需輸入
omxplayer 1.mp4
要播放聲音
需輸入
omxplayer 2.mp3
是否有簡易的方式
能讓我輸入a或者1即等於omxplayer 1.mp4
輸入b或者2即等於omxplayer 2.mp3
或是其他類似功能
感謝解答
--
最近在試作
我要使用omxplayer播放固定的影片及聲音
但要讓user可輸入簡短的指令即可達成
例如
原本要播放影片
指令需輸入
omxplayer 1.mp4
要播放聲音
需輸入
omxplayer 2.mp3
是否有簡易的方式
能讓我輸入a或者1即等於omxplayer 1.mp4
輸入b或者2即等於omxplayer 2.mp3
或是其他類似功能
感謝解答
--
Tags:
Linux
All Comments

By Jacob
at 2017-08-14T12:33
at 2017-08-14T12:33
Related Posts
ubuntu設定中華固定ip

By Joseph
at 2017-08-10T13:11
at 2017-08-10T13:11
dpkg -i 出現錯誤

By Ivy
at 2017-08-09T23:06
at 2017-08-09T23:06
資料庫安裝在 /u01 還是 /home/u01

By Donna
at 2017-08-08T13:52
at 2017-08-08T13:52
資料庫安裝在 /u01 還是 /home/u01

By Steve
at 2017-08-08T09:21
at 2017-08-08T09:21
資料庫安裝在 /u01 還是 /home/u01

By Oliver
at 2017-08-08T01:25
at 2017-08-08T01:25