mersenneforum.org  

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

Reply
 
Thread Tools
Old 2021-08-07, 12:46   #1
jiangv
 
Jul 2019

3·5 Posts
Default Can I write a shell script to run mprime on linux for stressing?

hey,

Can I call mprime in linux shell script? or is mprime provide cmd running on linux?

I want to running some defined stress tests on linux, but every time I running it, have to input a lot numbers.

dose mprime provide direct excute cmd interface?

thanks
jiangv is offline   Reply With Quote
Old 2021-08-07, 17:49   #2
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2×112×47 Posts
Default

Quote:
Originally Posted by jiangv View Post
Can I call mprime in linux shell script? or is mprime provide cmd running on linux? I want to running some defined stress tests on linux, but every time I running it, have to input a lot numbers.
Sure. But doing what I /think/ you're wanting to do is a /little/ more tricky than scripting it to do work in the worktodo.txt file.

I'd suggest you start by "making friends" with the Expect extension to the Tcl language. Either that, or make friends with bidirectional "pipes".
chalsall is offline   Reply With Quote
Old 2021-08-08, 19:25   #3
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2C6E16 Posts
Default

Quote:
Originally Posted by chalsall View Post
But doing what I /think/ you're wanting to do is a /little/ more tricky than scripting it to do work in the worktodo.txt file.
Actually, thinking about this a bit more...

George: Would it be much effort to expand the worktodo WUs to include benchmarking and/or torture testing as is available from the mprime command-line menus? Generally not to be sent by the Primenet API/IPC, but instead for those who want to experiment with their own machine(s) in a reproducible manner.

My thinking is we've had many questions along these lines. Expect is a handy tool in a geek's skillset, but not everyone enjoys learning new languages.

Thoughts?
chalsall is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft adds Linux Bash Shell and Ubuntu Binaries to Win10 ewmayer Software 5 2017-07-22 01:52
Init.d Script for MPrime CrashM Software 0 2012-05-18 01:01
Linux script language mioot Linux 1 2010-09-29 19:59
Please take a look my shell Script in Unix tinhnho Programming 2 2005-09-21 20:20
Shell script puzzle #1 Xyzzy Linux 5 2004-01-26 10:31

All times are UTC. The time now is 16:37.


Fri Jul 7 16:37:44 UTC 2023 up 323 days, 14:06, 1 user, load averages: 3.18, 2.64, 2.19

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

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔