If the file system state in not "clean", that means it wasn't unmounted properly or at all, for example because there was a power failure, a system panic, the disk was unplugged and similar situations. In such case, if the file system has logging enabled, instead of launching fsck, the OS only has to verify the last write/delete transactions were already performed, and replay the ones that weren't, if any. If the file system hasn't logging enabled, fsck is used and can take a long period of time because the OS need to explore the whole directory tree to see if everything is fine, fix inconsistencies and salvage files that would have been lost otherwise by copying them to the lost+found directory.
So, considering that's written above and having this (see code) every start:
It may say that after every system shutdown this mashine had some issues that you described above, I guess. Am I correct?
while (my $row = $sth->fetchrow_arrayref) {
$var->{"@$row"}=" ";
}
Can anyone help me understanding above mentioned.
i) As per my knowledge $row is taking ARRAY Refernce from the database
ii) @$row is containing the value of 0th index of the array, testted the same.
but I am not able... (0 Replies)
Hi,
Could someone pls help me on the below command:
if
then
------------------
------------
fi
if
then
-------------
-------------------
-------------------
fi
What does this signify?
Thanks,
.. (4 Replies)
Hi,
I am new into UNIX shell scripting and I am wondering what is the meaning of the below text which appears at the end of each line in the ".sh" file:
> /dev/null 2>&1
For example, the line below:
sh $HOME/stats/Rep777/Act_777.sh omc omc > /dev/null 2>&1
I know for sure what "sh... (10 Replies)
I need to sort the following file by the rhdiskpower devices in the last column:
Total_MB Free_MB OS_MB Name Failgroup Library Label UDID Product Redund Path
1024 851 1024 OCRVOT1_0000 OCRVOT1_0000 System UNKNOWN ... (3 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hi, What means "##*", "% *" in a variable??
I have this in the script that i'm reading:
...
read line
echo $line
echo ${line#* }
echo ${line##* }
echo ${line% * }
...
The first print:
DN: RCROOT ONRM_ROOT_MO SNW ONRM_ROOT_MO BSC BSCCC2 BTS ALTOHATILLONOR
The second print:... (2 Replies)
Hi Guys,
I'm sorry but I can't find answer for this, what is the meaning of -s option in "if" statement on unix scipting. Please see sample below:
opath=/home/output
for i in N1 N2 N3 N4
do
echo $i
if
then
grep $i $opath/N5_CRAI > $opath/N5_$i.crai
chmod 777 $opath/N5_$i.crai
... (7 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)