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