Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 4433 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

  • 1 month later...
Posted

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!
Posted

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.

Posted

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!

  • 4 weeks later...
  • Newbies
Posted

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

This topic is 4433 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.