Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Run Shell Script does not return output

Featured Replies

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...

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!

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.

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!

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.

Yes - it works! Thanx for your quick support!

  • 4 weeks later...
  • 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

Yes, the 32bit version.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.