System Experiments Laboratory  

Go Back   System Experiments Laboratory > Development > Bash scripting

Reply
 
Thread Tools Display Modes
  #1  
Old 08-14-2019
selroc selroc is offline
Administrator
 
Join Date: Aug 2019
Location: ROME
Posts: 111
Default Bash script to run GpuOwl PRP under tmux

Code:
#!/bin/bash

set -o xtrace

# Start tmux session for primenet instances
tmux new-session -c /home/zzzz -s test -d 'watch -n 1 sensors'
tmux split-window -d -c /home/zzzz/gpuowl -t test './gpuowl -dir /home/zzzz/gpuowl -user xxxx -block 400 -log 10000 -cpu cccc -device 0'
tmux split-window -d -c /home/zzzz/gpuowl -t test './primenet.py -u xxxx -p yyyy --dirs /home/zzzz/gpuowl -t 3600 -w 150 --tasks 2'
tmux select-layout -t test tiled
tmux attach -t test
This script opens 3 windows under a Tmux session:
1. watch sensors window
2. gpuowl window
3. primenet.py window
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT +2. The time now is 06:09 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
(c) 2019 System Experiments Laboratory