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

Issue with Shell script with waitForOutput false & writing to file

Featured Replies

For debugging purposes, I'm trying to do a tcpdump on OS X for a "Send Mail" script step, and I'd like this to run on the user computers, logging just for the relevant timeframe.

The shell script I'm using is along the lines of: 

tcpdump -c 100 > $HOME/test.txt 

I was hoping to be able to use ScriptMaster to circumvent the sad limitation that FileMaker can only do one thing at a time.

 

If I launch tcpdump with a shell script inside an AppleScript, the next script step (Send Mail) will only execute after tcpdump has terminated.

 

If I use Run Shell Script ( command ; waitForOutput ; timeout ) with waitForOutput = true works fine, but obviously has the same limitation.

 

If I use Run Shell Script ( command ; waitForOutput ; timeout ) with waitForOutput = false, a file is created but for some reason nothing is written to it.

 

Does anybody have ideas on what I'm doing wrong, or possibly what other means I could use to achieve the same thing? 

Create an account or sign in to comment

Important Information

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

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.