DiogoSaraiva |
Mercredi 27 Aoüt 2014 à 15:48
|
DiogoSaraiva
|
Hi I created a script
but when I run it don't work nor apears the code when the playonmac ask me for I accept the conditions:
the script:
#!/bin/bash
# Date : (2014-08-27 15-00)
# Last revision : (22014-08-27 15-00)
# Wine version used : 1.7.22
# Distribution used to test : OS X Yosemite / OS X 10.10
# Author : CR7AKG - Diogo Saraiva
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE=“MMSSTV”
PREFIX=“MMSSTV”
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" “HamSoft” "http://hamsoft.ca/" “CR7AKG - Diogo Saraiva” "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.7.22”
POL_System_TmpCreate "$PREFIX"
POL_SetupWindow_InstallMethod "DOWNLOAD"
Set_OS "win7"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
cd "$POL_System_TmpDir"
POL_Download "http://hamsoft.ca/media/Dload/mmsstv/MMSSTV113A.exe"
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
POL_Wine "$POL_System_TmpDir/MMSSTV113A.exe"
POL_SetupWindow_wait "$(eval_gettext '$TITLE has been successfully installed.')" "$TITLE"
fi
POL_System_TmpDelete
POL_Shortcut “MMSSTV.exe” "$TITLE"
POL_SetupWindow_Close
exit
Thank you and have a nice day
Edité par DiogoSaraiva
|
Quentin PÂRIS |
Mercredi 27 Aoüt 2014 à 16:12
|
Quentin PÂRIS
|
First, be careful, the quotes around MMSSTV.exe are not right (” instead of ")
I don't understand the cause problem, but it seems that POM cannot find your script. Are you sure that it is in the path written by PlayOnMac?
The alternative is to open PlayOnMac Console through Tool menu, then type the two commands:
cd "/Users/DiaogoSaraiva/Documents/codigo"
POL_Bash MMSSTV.txt
|
Ronin DUSETTE |
Mercredi 27 Aoüt 2014 à 16:15
|
Ronin DUSETTE
|
Does the script need to be executable to work, and it just throws that because it did not find an executable?
I agree with Quentin. For some reason, it just flat out cannot find the file you are trying to run, it appears. I do not really see an issue with the script, anyway.
|
DiogoSaraiva |
Mercredi 27 Aoüt 2014 à 16:18
|
DiogoSaraiva
|
file name is "codigo MMSSTV.txt" not "MMSSTV.txt"
Should I run:
cd "/Users/DiogoSaraiva/Documents/"
POL_Bash codigo MMSSTV.txt
?
|
DiogoSaraiva |
Mercredi 27 Aoüt 2014 à 16:23
|
DiogoSaraiva
|
|
Ronin DUSETTE |
Mercredi 27 Aoüt 2014 à 16:38
|
Ronin DUSETTE
|
Ok, we need MORE info, please. Is it doing the same thing? Saying that it cannot find it? Can you verify that it is actually in that location? Is the file you are trying to run marked as executable?
Why are you running codigo? you want to go TO that directory.
Check if your file is ACTUALLY located at /Users/DiogoSaraiva/Documents/codigo. Do you see MMSSTV.txt in that folder?
"not working yet"
We are well aware. Please be patient, and let us help you. :) If someone asks you to try something, please do. It makes it easier to help you.
|
DiogoSaraiva |
Mercredi 27 Aoüt 2014 à 16:41
|
DiogoSaraiva
|
I tryed with another text editor and was diferent, but not working yet
|
DiogoSaraiva |
Mercredi 27 Aoüt 2014 à 16:42
|
DiogoSaraiva
|
folder is not /Users/DiogoSaraiva/Documents/codigo is /Users/DiogoSaraiva/Documents/
|
DiogoSaraiva |
Mercredi 27 Aoüt 2014 à 16:44
|
DiogoSaraiva
|
and the new script is mmsstvcode.exe in the folder /Users/DiogoSaraiva/Documents
script:
#!/bin/bash
# Date : (2014-08-27 15-00)
# Last revision : (22014-08-27 15-00)
# Wine version used : 1.7.22
# Distribution used to test : OS X Yosemite / OS X 10.10
# Author : CR7AKG - Diogo Saraiva
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE=“MMSSTV”
PREFIX=“MMSSTV”
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" “HamSoft” "http://hamsoft.ca/" “CR7AKG - Diogo Saraiva” "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.7.22”
POL_System_TmpCreate "$PREFIX"
POL_SetupWindow_InstallMethod "DOWNLOAD"
Set_OS "win7"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
cd "$POL_System_TmpDir"
POL_Download "http://hamsoft.ca/media/Dload/mmsstv/MMSSTV113A.exe"
POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
POL_Wine "$POL_System_TmpDir/MMSSTV113A.exe"
POL_SetupWindow_wait "$(eval_gettext '$TITLE has been successfully installed.')" "$TITLE"
fi
POL_System_TmpDelete
POL_Shortcut "MMSSTV.exe" "$TITLE"
POL_SetupWindow_Close
exit
thanks
|
Ronin DUSETTE |
Mercredi 27 Aoüt 2014 à 16:55
|
Ronin DUSETTE
|
Your first post says different...
This is not Windows. Don't name your script .exe. You need to set the permissions on it to be executable. Not to a .exe.
You also still did not do as asked.
1. Where EXACTLY is your script located?
2. What editor EXACTLY are you using?
3. Please rename your script to something like .sh (not .exe). Set your script to be executable (search google).
4. Does your new script make a difference?
5. If not, does it still give you the same error?
6. In your first post, your script said something about codigo. What is that, and what relevance does it have to the script?
Please answer these questions, and post up any errors or changes you have made. Again, if you are doing things that we are not telling you to do, it just makes it impossible to help you correctly.
|
Ronin DUSETTE |
Mercredi 27 Aoüt 2014 à 16:57
|
Ronin DUSETTE
|
"folder is not /Users/DiogoSaraiva/Documents/codigo is /Users/DiogoSaraiva/Documents/"
I copied that from your post. If it is not correct, then why post it? If your script was in the Documents folder, and you were telling POM that the script was in Documents/codigo (look at the error in your first post), then of course it failed. Please make sure that the info that you post up is correct, as well. We only know what you are telling us, so if you are providing incorrect information, we cannot do anything about that. :D
|
Quentin PÂRIS |
Mercredi 27 Aoüt 2014 à 17:11
|
Quentin PÂRIS
|
I tryed with another text editor and was diferent, but not working yet
|
DiogoSaraiva |
Mercredi 27 Aoüt 2014 à 17:25
|
DiogoSaraiva
|
The root of the file its /Users/DiogoSaraiva/Documents/codigo SSTV.exe
because the space, "SSTV.exe" went to down
ok?
ahh, I already make the script run, but the installer of mmsstv not open, it tells that i have no permission...
"folder is not /Users/DiogoSaraiva/Documents/codigo is /Users/DiogoSaraiva/Documents/"
I copied that from your post. If it is not correct, then why post it? If your script was in the Documents folder, and you were telling POM that the script was in Documents/codigo (look at the error in your first post), then of course it failed. Please make sure that the info that you post up is correct, as well. We only know what you are telling us, so if you are providing incorrect information, we cannot do anything about that. :D
|
Ronin DUSETTE |
Mercredi 27 Aoüt 2014 à 17:29
|
Ronin DUSETTE
|
Can you post your debug output so we can see what exactly the error is? "No permission" is pretty vague.
|