October 11, 201213 yr I've copied the Run Shell Script function from ScriptMaster into my solution with a startup script to register the function. When I try to execute a shell script with WaitForReturn set to "true" I get: "Executed Shell Command: <Shell script>" Why am I not getting the output of the shell script?
November 15, 201213 yr Same to me! In the example file I get the expected result by "run script", but if a register this function in the same file I get the always the function string as result - like this: Calling: "RunShellScript( "echo "google.com" | nslookup " ; 1 ; 30 ) Returns: Executed shell command: echo "google.com" | nslookup System: Latest ScriptMaster Plugin 4.134, FileMaker Advanced 11.0v4 and(!) 12.0v3, OS X 10.8.2, Java 6 (java version "1.6.0_37") Can anyone help? Thanx!
November 15, 201213 yr Have you tried executing the shell script command in the ScriptMaster sample file? There should be no difference in the result provided the parameters are being passed in correctly. Can you provide the command you are attempting to execute? For the second post above, it looks like you are passing the wrong "waitForOutput" parameter to the function. This parameter takes a string "true" to return the output instead of the numeric 1 you are passing.
November 15, 201213 yr Have you tried executing the shell script command in the ScriptMaster sample file? There should be no difference in the result provided the parameters are being passed in correctly. Can you provide the command you are attempting to execute? Yes, testing this function in all my files and in your sample file, it allways returns the same result. Calling RunShellScript( "echo "google.com" | nslookup " ; true ; 30 ) Returns Executed shell command: echo "google.com" | nslookup For the second post above, it looks like you are passing the wrong "waitForOutput" parameter to the function. This parameter takes a string "true" to return the output instead of the numeric 1 you are passing. It tried both 1 ant true - same result. But other functions are working fine!
November 15, 201213 yr I tried this locally on Mac OS X Lion and it worked fine. Make sure the parameter "true" is enclosed in quotation marks as well.
December 11, 201213 yr Newbies hi every one ! im new to filemaker (filemaker 12 - windows 8) and install this plugins . when i click on run script on runshellscrip got this error : java.lang.RuntimeException: 'who' is not recognized as an internal or external command, so how can i fix this problem ? and am i need to install java on my machine to use Scriptmaster ?! Thanks a lot
Create an account or sign in to comment