mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2003-10-10, 03:14   #1
mpcst
 
May 2003

3 Posts
Default LOG REDIRECTION

Hi, i would like to know how i could run mprime as a deamon, while the log file is redirected to a another place.

I have in my prime.ini

prime.log=~mpcst/public_html/data/test/log1.log
results.txt=~mpcst/public_html/data/test/results2.txt
prime.spl=~mpcst/public_html/data/test/spl1.spl

and i run it from /etc/init.d/mpcst

#!/bin/sh
/var/prime/mprime -d -b >> ~mpcst/public_html/data/log1.dat
[mpcst@tsochos1 root]#


BUT there is no log file... no details....

Is there anything i could try??

Thanks in advance
mpcst
mpcst is offline   Reply With Quote
Old 2003-10-13, 21:16   #2
patrik
 
patrik's Avatar
 
"Patrik Johansson"
Aug 2002
Uppsala, Sweden

23×53 Posts
Default

That actually seems to produce no output. Maybe the -b overrides the -d. Try putting it in the background with "&" instead:

#!/bin/sh
/var/prime/mprime -d >> ~mpcst/public_html/data/log1.dat &
patrik is offline   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 09:22.

Fri Oct 23 09:22:45 UTC 2020 up 43 days, 6:33, 0 users, load averages: 1.86, 1.60, 1.65

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.