Tag Info

Hot answers tagged

4

This should do the work: #!/bin/bash ezstream -c $1 >log.txt 2>error.txt & ezpid=$! echo $ezpid sleep 2 if ps | grep $ezpid ; then echo ezsteam is still running! cat log.txt exit 0 else echo ezstream is dead cat error.txt exit 1 fi


3

I don't think you can pause system time. Lots of programs wouldn't like it anyway, because they generally expect time to go forward. If you paused the time, then any program going into sleep would never wake up. I don't understand exactly what you're trying to do, but I suspect that faketime would do what you're after. It lets you run programs with a fake ...


1

If your find command has the -maxdepth option (Linux (GNU or BusyBox), FreeBSD, NetBSD, OSX): find /var/www -maxdepth 3 -name wp-cron.php -exec php -q "{}" \; If you want to run wp-cron.php files at an exact depth, you can use wildcards: for x in /var/www/*/*/wp-cron.php; do php -q wp-cron.php done You can run locate wp-cron.php to quickly list ...


1

The default directory for html seems to be /var/www/html and not /var/www. As per the comments on the page you link to.



Only top voted, non community-wiki answers of a minimum length are eligible