![]() ![]() I think of comm and diff as being similar, so success with comm and failure with diff was a real stumper. The shell script in the last action is cd ~/Desktop/griffdiff ![]() So I made my own version of Rob’s macro and changed the last line from diff to comm: noninteractive shells, but that led nowhere. How can this be? My first thought was that the error had something to do with interactive vs. And of course, the script-without the echo "foo" line-worked just fine when run from the command line. Adding a final innocuous command, like echo "foo" to the end of it got rid of the error. Rob learned that the macro failed only when diff was the last command in the shell script. But it still failed (with the generic failed in shell script message). ![]() But because that was failing, I tried the above to write it to a file instead. I don’t actually want the diff results in a file, I want them in a variable returned by the shell script action. I’m trying to run a very simple shell script: cd /tmpĭiff file1.txt file2.txt > diff_result.txt Last week, Rob Griffiths-late of Mac OS X Hints and currently of Many Tricks-asked a really tough question on the Keyboard Maestro forum: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |