On my Windows PC I got a Putty Batch File that connects to my Pi (SSH - Openelec), authenticates as root
, kills a process (hyperiond
), and starts it again. I have to use this file frequently because hyperion
sometime gets pretty messed up (at least for me).
In Short it does the following:
Connect to 192...... ;
Authenticate as root with password ;
Run the commands: killall hyperiond ;
and /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json
I would like to do the same thing with my Macbook. Is there the possibility to create such a "batch" file on Mac with terminal?