James Gill Posted October 11, 2012 Posted October 11, 2012 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?
Reinhold Posted November 15, 2012 Posted November 15, 2012 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!
wbasham Posted November 15, 2012 Posted November 15, 2012 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.
Reinhold Posted November 15, 2012 Posted November 15, 2012 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!
wbasham Posted November 15, 2012 Posted November 15, 2012 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.
Reinhold Posted November 16, 2012 Posted November 16, 2012 Yes - it works! Thanx for your quick support!
Newbies sonixax Posted December 11, 2012 Newbies Posted December 11, 2012 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
Recommended Posts
This topic is 4736 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now