ruby - Windows or Unix commands from within rails -
i need run windows or unix tools/commands within rails controller.
e.g. need run usp.exe in windows , pipe output file called usb_results.csv using following command :
usp32.v.0.22.win/usp.exe -livesys -csv -separator '|' > usb_results.csv
the command works when run command directly command prompt in windows, not work within rails. tried system command follows not work:
system ("public/forensic_tools/usb_parser/usp32.v.0.22.win/usp.exe -livesys -csv -separator '|' > usb_results.csv")
Comments
Post a Comment