Lars Lindley wrote:
> I have it set up like this:
>
> A script in /etc called mersenne containing only this:
>
> cd /mersenne
> ./mprime -d
[...]
> This will not help the original poster seeing the current output since
> he doesn't have local access to the server. If he wants he can redirect
> to a file instead but it is bound to get big after a while..
A way to handle this is to use "rotating logs". Although in this
case the program doesn't support the feature, one can simulate it
by adding lines like this...
cd /mersenne
mv run2.log run3.log
mv run.log run2.log
echo "mprime startup" $(date) > run.log
./mprime >> run.log
At each startup a new log file gets created with the current date
and time put in it.
> A note in the end. This setup will run mprime as root which might be
> something frowned upon when running it on a server. On my home machine I
> don't care..
Which sudo will take care of.
HTH
Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!
_______________________________________________
Prime mailing list
[email protected]
http://hogranch.com/mailman/listinfo/prime