/usr/local/bin/stakeout /usr/local/script/tmctags `find $TM_PROJECT_DIRECTORY -name '*.as' | xargs echo` &
This command works fine in the terminal, but when I set it to a command (with HTML output so as not to freeze the player) it never terminates.
Any suggestions?
- Ben ___________________ Ben Jackson Diretor de Desenvolvimento
ben@incomumdesign.com http://www.incomumdesign.com
Update:
/usr/local/bin/stakeout /usr/local/script/tmctags `find $TM_PROJECT_DIRECTORY -name '*.as' | xargs echo` &
This command works fine in the terminal, but when I set it to a command (with HTML output so as not to freeze the player) it never terminates.
Changed the command to use the ruby stakeout and redirect the stderr to stdout.
/usr/local/script/stakeout.rb "rake" `find . -name '*.as' | xargs echo` 2>&1
This still hangs in the HTML preview, but killing the proc shows the output. Is there any way to get output from a running command before it terminates?
___________________ Ben Jackson Diretor de Desenvolvimento
+55 (21) 2256-1022 ben@incomumdesign.com http://www.incomumdesign.com
Yet another update:
http://comox.textdrive.com/pipermail/textmate/2005-September/005662.html
Seems like this is the issue.
- Ben
On Jun 8, 2006, at 7:52 PM, Benjamin Jackson wrote:
Update:
/usr/local/bin/stakeout /usr/local/script/tmctags `find $TM_PROJECT_DIRECTORY -name '*.as' | xargs echo` &
This command works fine in the terminal, but when I set it to a command (with HTML output so as not to freeze the player) it never terminates.
Changed the command to use the ruby stakeout and redirect the stderr to stdout.
/usr/local/script/stakeout.rb "rake" `find . -name '*.as' | xargs echo` 2>&1
This still hangs in the HTML preview, but killing the proc shows the output. Is there any way to get output from a running command before it terminates?
Ben Jackson Diretor de Desenvolvimento
ben@incomumdesign.com http://www.incomumdesign.com
___________________ Ben Jackson Diretor de Desenvolvimento
ben@incomumdesign.com http://www.incomumdesign.com
On 9/6/2006, at 0:52, Benjamin Jackson wrote:
Changed the command to use the ruby stakeout [...]
You need to redirect stdout/error to /dev/null. TM will wait for the command to close its output channel, before it considers it as done.
find . -name '*.as' -print0|xargs -0 /usr/local/script/ stakeout.rb rake &>/dev/null &
(I believe the above is a safer use of find/xargs, as it will work when file names contain spaces or other input field separator characters)