Tag Archives: cli

PHP doesn’t execute scripts

Neither using CLI (with -f or a shebang) nor through Apache.

It was just dumping the script to stdout, and that means short PHP tags (<? ... ?>) are disabled. Nothing serious, fixed in php.ini.

But then it just did nothing. No output, no errors, no warnings. Turned out this particular version of PHP can’t read DOS-formatted text files. To change them to Unix, in vim:

:set ff-unix

This happened after I flipped from FreeBSD to Arch Linux.

Console RSS news reader

I was looking for one today, and only found these three:

Raggle – written in Ruby, last version dates 2004, feeds-articles-content layout common to graphical aggregators.
Snownews – a simple list layout.
Newsbeuter – very much like mutt in layout.

All three support some sort of filtering/grouping; and importing/exporting OPML.

Here’s the memory usage:

PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
36264 user 1 96 0 24100K 19852K select 0:12 0.00% ruby
36506 user 1 5 0 14388K 10632K ttyin 0:07 0.00% newsbeuter
35062 user 1 5 0 6728K 3664K ttyin 0:00 0.00% snownews

Other notes:

  • Snownews doesn’t support Atom. The other two do.
  • Snownews and Raggle have feed encoding conversion problems, at least on my machine. Newsbeuter doesn’t.
  • Snownews and Raggle can be run under cygwin. Don’t know about Newsbeuter.