osx - Getting input to an executable via stdin? -


i have executable need take input .wav file on desktop. executable expects input on stdin.

let use example:

/users/tomcruise/desktop/executable     /users/tomcruise/desktop/music.wav    

i using mac os x.

open terminal , following:

$ cd /users/tomcruise/desktop $ ./executable < music.wav 

Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

web applications - Making Python scripts work on MAMP -

cocoa - Converting NSString to keyCode+modifiers for AXUIElementPostKeyboardEvent -