atr_app_exists

Versions
6.1
atr_app_exists($app)

Check if the operating system has an application installed.

Return value

Boolean.

▾ 2 functions call atr_app_exists()

atr_file_process in atr/atr.module
Form process handler for 'atr_file'.
atr_targz_extract in atr/includes/atr.extract.inc
Extract and delete a *.tar.gz archive.

Code

atr/atr.module, line 292

<?php
function atr_app_exists($app) {
  $code;
  $output;
  exec("which $app", $output, $code);

  return $code == 0;
}
?>