[TxMt] ruby not found error

David Casal david at luminas.co.uk
Thu Jan 27 12:15:38 UTC 2005


Hello all,

Stupid question here...I have:

ruby /Users/dc/Documents/txt/scripts/todo2log.rb $TM_FILEPATH

as a command, but it has suddenly stopped working, saying:

/bin/bash: line 1: ruby: command not found

the script:

#!/usr/local/bin/ruby

task_text = $stdin.read
task_text.gsub!("\\[ \\] ","[X] ")

from = File.basename(ARGV[0],".txt")

File.open("/Users/dc/Documents/txt/LOGS/ 
completed.txt",'a'){|archive_file|
    archive_file.puts
    archive_file.puts task_text
    archive_file.puts "      in #{from} #{`date \"+%H:%M %Y%m%d %a\"`}"
}

ruby is to be found there (/usr/local/bin), and it worked yesterday, so  
I can't tell at all why this is happening...

but I know I'm missing something obvious

hints?

d
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2367 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20050127/68f78e7b/attachment.p7s>


More information about the textmate mailing list