Post
Topic
Board Mining (Altcoins)
Re: [OS] nvOC easy-to-use Linux Nvidia Mining v0019-1.4
by
kk003
on 08/11/2017, 00:17:15 UTC

I try to read your huge script and i think you're a very experienced scripter. Thank for it.

But i see multiple auto_gram openden when WTM restart 3main at each switching coin. and i get en ps error but i don't know how.
I will post tomorrow in this thread about that

Thx  Tongue. I don't have a nvoc 19+ installed. The script was tested on nvoc 19 stable so I don't know yet how to get it working with WMT switch.
If some one have WMT switch working on Nvoc 19 stable and want to share a how to I'll be happy to modify the script.
Post what you have anyway.


look at this error message i can see on my miner's screen in a guake tab named auto_gram:
Code:
m1@MINER:~$ bash /home/m1/kk003_telegram
error: list of process IDs must follow -p

Usage:
 ps [options]

 Try 'ps --help '
  or 'ps --help '
 for additional help text.

For more details see ps(1).

Note : my version is nvOC19-1.4 and i'm using WTM_Switch included in z-papami_WTM folder

Please login using ssh or terminal as m1 user and exec kk003_telegram:
Code:
bash kk003_telegram

Let me know if you see same error.
EDIT: If possible stop mining with WTM, mine with any miner and test if error persists

UPDATE:
From console run:
Code:
ps -o etime= -p $(pgrep -f miner)

and

Code:
ps -o etimes= -p $(pgrep -f Xorg)

see if retuns any values

I guess the first one fails because miner process is missing

I just upload a new version of kk003_telegram with Papampi's WTM switch statics support (thx Papampi ) that don't fix the problem miner process is missing (if I am right) but search for miner and Xorg process before exec ps.
Hope works well on Nvoc 19+ as I dont have it installed and in 19 stable don't get that error.
I would appreciate feedback.
Here the link: https://pastebin.com/vPnb6TKn

To update the script:
1. Backup the old one
Code:
cp /home/m1/telegram /home/m1/telegram.old

2. Edit /home/m1/telegram. Find :
Code:
#mod by kk003
if [ $TELEGRAM_TYPE == "kk003" ]
then
#!/bin/bash

3. Remove all from (including this line)
Code:
#!/bin/bash
 

to penultimate line

Code:
) >> $KK003_LOG_FILE ##### DON'T REMOVE THIS CLOSED PARENTHESIS OR WE'LL MISS THE LOG FILE
(Remove that last line too)

So you have to see the last lines of /home/m1/telegram like this:

Code:
#mod by kk003
if [ $TELEGRAM_TYPE == "kk003" ]
then
fi

4. Make a blank line between "then" and "fi" and get your cursor there
5. Copy and paste the new code from the link provided above
6. Save the file
7. From terminal run
Code:
bash telegram
and see if you get any errors

Let me know how it goes.