} elseif ($argv[1] == 'bat_ten') { $outstr = exec('cat /dev/shm/ups.txt | grep "*V)"'); } elseif ($argv[1] == 'bat_cap') { $outstr = exec('cat /dev/shm/ups.txt | grep "*%)"');