libnotify

Bash commands not executed when through cron job - PHP

跟風遠走 提交于 2019-12-13 04:38:21
问题 I have a cron job running a PHP script every five minutes; the PHP script executes two bash commands at the end of the script. I know the script is running due to a log file it appends to. When I run the PHP script manually via the Ubuntu Gnome Terminal both bash commands execute flawlessly; however when the PHP script is triggered via cron, the two bash commands are not ran. Any ideas? $command = 'notify-send "' . count($infoleakPosts) . ' New Posts."'; `$command`; $command = 'firefox http:/

No notification when guard-rspec is used with spork

怎甘沉沦 提交于 2019-12-06 04:06:21
问题 I am working on ubuntu machine with Ruby-1.9.2 and rails-3.1.3. I am using guard-rspec for autotesting and spork as DRB server. When I run guard without spork, it shows the correct notifications. But guard with spork shows no notifications at all. Here is relevant part of my Gemfile group :test, :development do gem 'rake', '0.9.3.beta.1' gem 'turn' gem 'rspec-rails' gem 'rspec' gem 'guard-rspec' gem 'spork' gem 'webrat' gem 'rb-fchange' gem 'rb-fsevent' gem 'libnotify' end 回答1: I know it is

No notification when guard-rspec is used with spork

左心房为你撑大大i 提交于 2019-12-04 12:52:13
I am working on ubuntu machine with Ruby-1.9.2 and rails-3.1.3. I am using guard-rspec for autotesting and spork as DRB server. When I run guard without spork, it shows the correct notifications. But guard with spork shows no notifications at all. Here is relevant part of my Gemfile group :test, :development do gem 'rake', '0.9.3.beta.1' gem 'turn' gem 'rspec-rails' gem 'rspec' gem 'guard-rspec' gem 'spork' gem 'webrat' gem 'rb-fchange' gem 'rb-fsevent' gem 'libnotify' end I know it is an old question, but found via Google and just struggle with same problem. Solution is quite easy. Use guard