El Foro

Impossible de lancer un script local

Autor Respuestas
thib25 Wednesday 17 June 2009 at 16:10
thib25Anonymous

Bon, voilà je me suis "remis" à la création de script mais quand je le lance rien ne se passe :sad:. Pour être plus précis voilà ce que m'écrit la console :

/home/thibault/Documents/Scriptd POL/TRS 2006: line 1: [/usr/share/playonlinux: Aucun fichier ou dossier de ce type
/home/thibault/Documents/Scriptd POL/TRS 2006: line 22: POL_SetupWindow_Init : commande introuvable
/home/thibault/Documents/Scriptd POL/TRS 2006: line 23: POL_SetupWindow_presentation : commande introuvable
/home/thibault/Documents/Scriptd POL/TRS 2006: line 25: select_prefixe : commande introuvable
/home/thibault/Documents/Scriptd POL/TRS 2006: line 26: POL_SetupWindow_prefixcreate : commande introuvable
/home/thibault/Documents/Scriptd POL/TRS 2006: line 28: POL_SetupWindow_cdrom : commande introuvable
/home/thibault/Documents/Scriptd POL/TRS 2006: line 29: POL_SetupWindow_check_cdrom : commande introuvable
/home/thibault/Documents/Scriptd POL/TRS 2006: line 32: POL_SetupWindow_wait_next_signal : commande introuvable
wine: could not load L"C:\\\\windows\\\\system32\\\\menu.exe": Module introuvable
/home/thibault/Documents/Scriptd POL/TRS 2006: line 34: POL_SetupWindow_detect_exit : commande introuvable
/home/thibault/Documents/Scriptd POL/TRS 2006: line 36: POL_SetupWindow_menu : commande introuvable
/home/thibault/Documents/Scriptd POL/TRS 2006: line 47: Erreur de syntaxe : fin de fichier prématurée

Sinon voilà le script si jamais il s'agit d'une erreur de ma part :

["$PLAYONLINUX" =""]&&exit0
 
NAME="Trainz Railroad Simulator 2006"
PREFIX="TRS2006"

if [ "$POL_LANG" == "fr" ]; then
INSTALLATION="Installation en cours..."
SP1="Souhaitez-vous télécharger et installer le SP1 pour TRS2006 ?"
YES="Oui"
NO="Non"
DOWNLOADM="Téléchargement du SP1 en cours..."
DOWNLOADT="Téléchargement du SP1"
else
INSTALLATION="Installation in progress..."
SP1="Would you like to download and install the SP1 for TRS2006 ?"
YES="Yes"
No="No"
DOWNLOADM="Download of the SP1 in progress..."
DOWNLOADT="Download of the SP1"
fi
 
POL_SetupWindow_Init
POL_SetupWindow_presentation "Trainz Railroad Simulator 2006" "Anuman Interactive" "www.trainz-simulator.com" "thib25" "TRS2006"
 
select_prefixe "$REPERTOIRE/wineprefix/TRS2006"
POL_SetupWindow_prefixcreate 
 
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "menu.exe"
 
cd $CDROM
POL_SetupWindow_wait_next_signal "Installation in progress..." "Trainz Railroad Simulator 2006"
wine menu.exe
POL_SetupWindow_detect_exit

POL_SetupWindow_menu "SP1" "" "$YES" "$NO"
if [ "$APP_ANSWER" == "True" ]; then
cd $REPERTOIRE/tmp
POL_SetupWindow_download "$DOWNLOADM" "$DOWNLOADT" "http://files.auran.com/TRS2006/servicepacks/TRS2006_US_2761-3092.exe"
wine $REPERTOIRE/tmp/TRS2006_US_2761-3092.exe

else
fi
 
POL_SetupWindow_make_shortcut "TRS2006" "Program Files/Anuman Interactive/TRS 2006" "TRS2006.exe" "" "Trainz Railroad Simulator 2006" 
 
POL_SetupWindow_reboot
POL_SetupWindow_Close
exit

Pour information ma distribution est Ubuntu 9.04 64bits.
Berillions Wednesday 17 June 2009 at 18:15
Berillions

Peux-tu me dire comment tu lances un script local via la console?
Car j'ai le même soucis que toi. J'ai crée un script identique aux autres et impossible de le lancer... Enfin, il ne se lance pas du tout.

Merci

thib25 Wednesday 17 June 2009 at 18:59
thib25Anonymous

Non mais en fait je lance POL dans la console en tapant playonlinux puis je vais dans Outil -> Executer un script local et j'observe ces lignes dans le terminal
Quentin PÂRIS Wednesday 17 June 2009 at 20:05
Quentin PÂRISAnonymous

["$PLAYONLINUX" =""]&&exit0 devient

[ "$PLAYONLINUX" = "" ] && exit 0

Sans oublier un

source "$PLAYONLINUX/lib/source"

sinon ça peut pas marcher

Le else qui traine tu peux le virer
thib25 Wednesday 17 June 2009 at 21:32
thib25Anonymous

Bon, j'ai toujours les mêmes problèmes malgré le fait que j'ai fait ce que t'as dit.
Quentin PÂRIS Thursday 18 June 2009 at 6:46
Quentin PÂRISAnonymous

Montre le script à jour