Automating gSmartControl via command line?

Xander

Banned
Reaction score
66
Location
Niagara region, Ontario
I'm looking to incorporate it into my standard D7 routine. It would seem that smartctl is the main file and gsmartcontrol is just the gui.

smartctl.exe -t short -C d:*
smartctl.exe -l selftest d:


When I run the first line on my C: drive (SSD), it waits for the test to finish, but not when I run it on my D: (regular HD), it says it's running it in the background and returns to the prompt. That's not desirable as D7 would then assume it's just plain finished.

If I try to combine them, (smartctl.exe -t short -C -l selftest d:), it says there's no log available and then queues the test in the background, immediately returning to the dos prompt.

I could put two entries in the list, the first for the test and the second for the log. If I put a few things in between them, that would guarantee that the test would have time to run. This is my best plan currently unless someone has a great idea.

Of course, if anybody really knows what they're doing here, I don't mind being made to look like an idiot for the sake of getting it done right :)


*manual says I can do /dev/ with sda/pd1/driveletter. Since the sd/pd part seems to vary by machine, it seemed best to stick to what is always the root drive.
 
Back
Top