Kinetic915 (OP)
|
|
April 12, 2013, 02:12:08 PM |
|
Hello all,
I am currently using the python script to open and terminate reaper. Is there a script I can use that can send me a email or something with the current temps of the GPUs on close?
Thanks!
|
|
|
|
|
|
|
|
|
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
|
midnightcoder
Newbie
Offline
Activity: 11
Merit: 0
|
|
April 12, 2013, 02:29:46 PM |
|
Are you on Linux? I use SSMTP for stuff like this: https://wiki.archlinux.org/index.php/SSMTP. Never tried a python only solution, but you can call system commands from python. If not, sorry me not speaky de windoze.
|
|
|
|
|
Kinetic915 (OP)
|
|
April 12, 2013, 02:37:08 PM |
|
I guess I don't have to use python. Any other suggestions for finding the gpu temps and writing to a log maybe?
Thanks!
|
|
|
|
nesic1
|
|
April 12, 2013, 02:41:29 PM |
|
hi, can you paste me the python code, i manage to open reaper but it wont close?
|
|
|
|
Kinetic915 (OP)
|
|
April 12, 2013, 04:45:05 PM |
|
import os, subprocess, time
while True: print("Starting reaper...") p = subprocess.Popen("C:\\Users\\my-pc\\Desktop\\reaper\\reaper.exe") time.sleep(7200) print("Terminating reaper...") p.terminate() time.sleep(10)
|
|
|
|
nesic1
|
|
April 12, 2013, 09:36:31 PM |
|
Thank you for reply, i use same code but in some reason it wouldn't work
|
|
|
|
Kinetic915 (OP)
|
|
April 13, 2013, 01:14:52 AM |
|
Do you see the command prompt quickly opening and closing? Like in a flash? Try opening the script directly from the command line and seeing what it says. I had this problem and found the script telling me it needed "elevation" even though I was logged into a admin account. What solved it was going directly to the python executables python.exe and pythonw.exe (i think) opening their properties/ security and checking run as administrator. Hope this helps!
|
|
|
|
|