I am trying to run growlnotify from inside a ruby script.
The command I am using is this system("growlnotify Test -m message").
If I use the terminal to execute the script it works fine. If I use Textmate to run the script or Geektool (the eventual target of the script) it does not ever run the growlnotify part. Each other part of the...
I have a Ruby script that I built in TextMate and can successfully run in TextMate.
I can also successfully run this script straight from the terminal.
The script has this chunk of code in it:
# Get the XML file
puts 'Opening the file'
open("messages.xml", "r") do |f|
puts 'File is opened'
theXML = Hpricot::XML(f)
puts 'Tryin...
I wrote a Ruby script that I want to run in the background repeatedly as long as the computer is running. I was planning on using GeekTool to get this .rb file to run in the background, but I'm having issues seen here using GeekTool to run my script.
The thing is that I want this script to be a complete surprise (it's a message display...
This is new to me a little. But my objective is to run a script that will display the directory of a network drive. I am on a mac and the network drive is a local SMB connection.
I have been able to use
ls ~/Documents
and that lists a specificed local directory, but I am unable to get it to show contents of a network directory.
BTW...