Public feed #379421

Someone

public text v1 · immutable
Raw Edit
·published 2007-03-03 06:57 UTC
rendered paste body
#!/usr/bin/php -q
<?php
	$tSecs = 1;
	$tArgc = $_SERVER['argc'];
	if (2 == $tArgc) {
		$tSecs = $_SERVER['argv'][1];
	}
	echo "Pausing for $tSecs seconds\n";
	echo date('h:i:s') . "\n";
	sleep($tSecs);
	exec("aplay /home/brussel/Desktop/DL/ding2.wav &>/dev/null");
	#system("aplay /home/brussel/Desktop/DL/ding2.wav &>/dev/null");
	#system("aplay /home/brussel/Desktop/DL/ding2.wav >/dev/null 2>&1");
	#system("aplay /home/brussel/Desktop/DL/ding2.wav 2>&1 | > /dev/null");
	echo date('h:i:s') . "\n";
?>