Tag Info

Hot answers tagged

3

Using /dev/random is meant to be reserved for things which truly need to be cryptographically secure, such as private key material, because it relies on an entropy pool which can be depleted rapidly if the RNG is overused. Unless for some reason you think the NSA might want to influence the results of your card games? So /dev/urandom, a PRNG which never ...


1

I know you are looing for something installable via package manager but if you are looking for some simple script the below one do a trick for you SERVERIP=192.168.0.1 NOTIFYEMAIL=testing@example.com ping -c 3 $SERVERIP > /dev/null 2>&1 if [ $? -ne 0 ] then mail -s "Server $SERVERIP is down" -t ...


1

If all you need is to send email when you don't receive a ping response, something like this might work: #!/bin/sh while oping -c 20 -i 1 -Z 15 otherhost; do : done echo "otherhost is down" | mail -s "otherhost is down" recipient@domain This needs oping from the eponymous package. The switches above cause it to send 20 pings at 1 second intervals; if ...


1

I suspect there is an issue with your routing rules. You need to specify what destination addresses go out which interfaces. Its probably all just going out the default gateway currently. Those POSTROUTING rules get applied after the routing gets done.


1

If you are not planning to use APC then this can be safely removed from your PHP configuration. First, find your php.ini file and edit it. Find "apc" in the php.ini file, you should find a line that looks like this: extension=apc.so You can comment out this line by adding a semi-colon in front, e.g. ;extension=apc.so If you cannot find the "apc.so" ...


1

One way to do this is to use PHP's $argv array that is available in CLI scripts. Example cron: * * * * * * /var/www/mysite/folder/foo.php 1 In your php file $argv variable will be available where $argv[1] (Second element) will be the supplied argument. So if you can modify this scrip to work with $argv, then this is a good solution. If you HAVE to use a ...


1

You are confusing the share directory for php and the php binary. The file you should use probably is /usr/bin/php. The path for your script is probably wrong too, as @jin-pow told you. You may have to use /var/www/whatever/foo.php. And if you run it passing ?query=1, it will not work, as PHP will complain that he will not be able to find the script. And ...


1

You have not indicated the OS, distribution and versions of all the 6 Virtual machines you want to share files with....thus I'll assume that they are all Linux. I'd suggest using a filesystem mounted on one VM exported using NFS. The other clients would have the mounted via NFS the exported filesystem (or actually dirctory for that matter) from the one VM. ...



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