lundi 27 janvier 2014

[Coding] Linux - Autostart topic




well since im a total noob with linux and i just test out things i cant get this to work .


Code:


#!/bin/bash
 
for (( ; ; ))
do
    echo "Executing... ";
    /run/bin/mangosd
done


mangosd is the file i want to be auto executed when its not running.
PuTTy is telling me this :

Code:


mangos@server:~$ ./servercheck.sh
-bash: ./servercheck.sh: /bin/bash^M: bad interpreter: No such file or directory


am i totally blind or is it something i just missed.
the file is 100% there





Aucun commentaire:

Enregistrer un commentaire