mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2019-06-01, 22:49   #1
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

5·172 Posts
Default Beep ( from pieso speaker ( motherboard) and Mprime

I buy new SSD for my linux machine and install latest version od Debian netinstall.
So I dont have any GUI.
So my problem is: if I login to console and start mprime and mprime find PRP then pieso speaker from motherboard start to do beep :)
But if I start mprime via crontab then pieso speaker dont produce any sound if PRP is found.
Any solution?
pepi37 is offline   Reply With Quote
Old 2019-06-02, 08:33   #2
S485122
 
S485122's Avatar
 
Sep 2006
Brussels, Belgium

2·3·281 Posts
Default

I think that this could help : when in console mode you can use the menu item 14 to set "Make noise if new Mersenne prime is found" to "N" or you can just add the line "SilentVictory=1" to prime.txt.

Jacob
S485122 is online now   Reply With Quote
Old 2019-06-02, 12:35   #3
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

5·172 Posts
Default

Quote:
Originally Posted by S485122 View Post
I think that this could help : when in console mode you can use the menu item 14 to set "Make noise if new Mersenne prime is found" to "N" or you can just add the line "SilentVictory=1" to prime.txt.

Jacob
That will stop beep tone. And I need opposite :) - I need beep tone :)
pepi37 is offline   Reply With Quote
Old 2019-06-02, 14:38   #4
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

100000001000002 Posts
Default

Maybe:

SilentVictory=0
Xyzzy is offline   Reply With Quote
Old 2019-06-02, 15:35   #5
S485122
 
S485122's Avatar
 
Sep 2006
Brussels, Belgium

2×3×281 Posts
Default

Oups ! Indeed I read what I would want : no noise.

As far as I understand things when you run the program through crontab the output goes to a logfile by default. Since the "beeps" are printed to the standard output they will be in the file. You should have crontab start a terminal session that will run mprime.(or something like that.)

Jacob
S485122 is online now   Reply With Quote
Old 2019-06-02, 17:32   #6
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

5×172 Posts
Default

Quote:
Originally Posted by S485122 View Post
Oups ! Indeed I read what I would want : no noise.

As far as I understand things when you run the program through crontab the output goes to a logfile by default. Since the "beeps" are printed to the standard output they will be in the file. You should have crontab start a terminal session that will run mprime.(or something like that.)

Jacob

Yes, I noticed a huge number of letter "G" when PRP is found and beep start.


Anyone have idea how to start terminal and mprime inside with crontab
pepi37 is offline   Reply With Quote
Old 2019-06-02, 21:28   #7
Nick
 
Nick's Avatar
 
Dec 2012
The Netherlands

6A616 Posts
Default

Unprivileged users are not usually allowed to write to the console unless they are logged in on it because of the inherent security risks.
If this is not an issue on your machine, you can change the permissions and then add
Code:
>/dev/console 2>&1
to the end of the line in the crontab file.
Nick is online now   Reply With Quote
Old 2019-06-02, 22:00   #8
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

5×172 Posts
Default

Quote:
Originally Posted by Nick View Post
Unprivileged users are not usually allowed to write to the console unless they are logged in on it because of the inherent security risks.
If this is not an issue on your machine, you can change the permissions and then add
Code:
>/dev/console 2>&1
to the end of the line in the crontab file.

Nick this work perfect, but now I lost logging, since I redirect all output text to log file.
I found that in same rare situations I can be without results or two ( lost in space) and found they are present in log file.

Any suggestion for this?
pepi37 is offline   Reply With Quote
Old 2019-06-02, 22:31   #9
Nick
 
Nick's Avatar
 
Dec 2012
The Netherlands

2·23·37 Posts
Default

Quote:
Originally Posted by pepi37 View Post
Any suggestion for this?
Try this instead on the end of the line in the crontab:
Code:
  | tee logfile.txt >/dev/console
Nick is online now   Reply With Quote
Old 2019-06-02, 22:58   #10
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

144510 Posts
Default

Quote:
Originally Posted by Nick View Post
Try this instead on the end of the line in the crontab:
Code:
  | tee logfile.txt >/dev/console



Thanks a million times, all I need it to add -a so content of file is append in case of reboot :)
Now I have what I need!
Thanks once more time.
pepi37 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
motherboard disposal wildrabbitt Hardware 5 2019-01-11 19:07
Processor for X79 motherboard fivemack Hardware 5 2018-05-07 09:16
Motherboard for AMD FX8350 fivemack Hardware 5 2012-10-23 20:56
Help choosing motherboard please. Flatlander GPU Computing 4 2011-01-26 08:15
Motherboard Problem ndpowell Hardware 3 2006-02-08 21:40

All times are UTC. The time now is 08:58.


Sat Jul 17 08:58:29 UTC 2021 up 50 days, 6:45, 1 user, load averages: 1.65, 1.56, 1.46

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.