#include #include #include #include #include int main(int argc, char *argv[]) { char buff[256]; snprintf(buff, 256, "/dev/hd%c", argv[1][0]); execl("/usr/sbin/smartctl", "/usr/sbin/smartctl", "-a", buff, NULL); }