![]() |
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 |
[QUOTE=jiangv;585081]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.[/QUOTE]
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 [URL="https://en.wikipedia.org/wiki/Expect"]Expect[/URL] extension to the Tcl language. Either that, or make friends with bidirectional "pipes". |
[QUOTE=chalsall;585121]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.[/QUOTE]
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? |
| All times are UTC. The time now is 16:37. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.