Looking for a return value weather smartctl is running a (short) selftest or not
Hey guys, I'm kinda stuck here.. I'm trying to write a script, which should start a short selftest via smartctl, for example
and after the test is finished I want it to write the new smartvalues in a logfile.
well... Now I need a return value for wether the selftest is running or not. I want the script to sleep for a minute and then check if the selftest is still running, if it is, sleep for a minute and so on... But I just can't find a proper way to do this. I know smartctl gives return values for a few errors and stuff, but that's not what I need :/
I'm running a debian jessie, the script will, in the end, be running on a debian live (build with the debian live builder)
any help, information or a workaround would be highly appreciated.
i edited the resolv.conf file, the i rebooted the machine, the following error appeard .. plz help
/rsc selftest failed return code 1
Error ==> timeout on character recieved , uart port D
FRU ==> plug-in card
caller ==> warning diag-process-error rsc-ini-eth-test ...
caller ==>... (1 Reply)
Hi all,
Please tell me how to verify weather it is a ebcdic file or not . I checked with file commond but it is giving like International Language text.
Regards,
Chaitu (0 Replies)
Hi,
Hi want to check weather a file is being used by using a command or java code or shell script.
So, can any body give me some idea..
Thanks
Buddhika (3 Replies)
While I am by habit comfortable with bash as a shell, from time to time, I find tiny reasons to believe it's a little dense. One of the things that proves it is: to date, I have not been able to get it to identify what WM it's running inside of or alongside of in an X11 kind of environment... (1 Reply)
Hi everybody, I'm new to these forums and this is my first post. A couple days ago I was trying to find a simple script that would return an individual's local weather conditions using I.P. based geolocation. After many failed search attempts, I began my quest to create this for myself. I have to... (0 Replies)
I have a script which runs a script in the background. Now the script running in background returns some variable value and i want to catch return value in the parent script.
e.g.
Parent Script :
#!/bin/bash
./Back.sh &
pid=$!
echo "a=$a"
echo "b=$b"
echo "d=$((a+b))"
wait $pid
... (4 Replies)
Hi Forum.
I'm running the following awk command to extract the suffix value (pos 38) from the "AM00" record and append to the end of the "AM01" record.
awk 'substr($0,13,4)=="AM00" {SUFFIX = substr($0,38,2)} substr($0,13,4)=="AM01" {$0 = $0 SUFFIX} 1' before.txt > after.txt
Before.txt:... (2 Replies)
Hi Team,
i am executing 3 scripts in background from 1 script and i want to send a message once the script gets completed.these scripts usually takes 1 hr to complete.
My sample script is below,
Vi abc.sh
sh /opt/data/Split_1.sh &
sh /opt/data/Split_2.sh &
sh /opt/data/Split_3.sh &
... (3 Replies)
Discussion started by: raju2016
3 Replies
LEARN ABOUT DEBIAN
gsmartcontrol
GSmartControl(1) User Commands GSmartControl(1)NAME
GSmartControl - Hard disk drive health inspection tool
SYNOPSIS
gsmartcontrol [OPTIONS]
gsmartcontrol-root [<desktop> [OPTIONS]]
DESCRIPTION
GSmartControl is a graphical user interface for smartctl (from smartmontools), which is a tool for querying and controlling SMART (Self-
Monitoring, Analysis, and Reporting Technology) data on modern hard disk drives. It allows you to inspect the drive's SMART data to deter-
mine its health, as well as run various tests on it.
This manual page documents briefly the gsmartcontrol and gsmartcontrol-root commands.
gsmartcontrol-root command launches gsmartcontrol with administrative privileges. The desktop argument specifies which desktop is currently
running, for automatic selection of native su mechanism. Valid values for desktop are auto, kde, gnome, other.
OPTIONS
Help Options:
-?, --help
Show help options
--help-all
Show all help options
--help-gtk
Show GTK+ options
--help-debug
Show logging options
Application Options:
-l, --no-locale
Disable locale
-V, --version
Display version information
--no-scan
Don't scan devices on startup
--no-hide-tabs
Don't hide non-identity tabs when SMART is disabled. Useful for debugging.
--add-virtual
Load smartctl data from file, creating a virtual drive
--add-device
Add this device to device list. Useful with --no-scan to list certain drives only.
--display=DISPLAY
X display to use
-v, --verbose
Enable verbose logging; same as --verbosity-level 5
-q, --quiet
Disable logging; same as --verbosity-level 0
-b, --verbosity-level
Set verbosity level [0-5]
COPYRIGHT
Copyright (C) 2008 - 2009 Alexander Shaduri <ashaduri 'at' gmail.com>
AUTHOR
This manual page was originally written by Giuseppe Iuculano <giuseppe@iuculano.it>, for the Debian project.
gsmartcontrolGSmartControl(1)