-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
30 lines (22 loc) · 867 Bytes
/
test.sh
File metadata and controls
30 lines (22 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
################ Author: Guruprasad B. Gopinath ################################
#!/bin/sh
mkdir -p testfolder
cd testfolder
TS=$(date)
echo $TS > abc.txt
TSM=$(sed 's/ /-/g' abc.txt)
#echo $TSM
touch docfile$TSM.txt
echo "The OS " $(lsb_release -d) > docfile$TSM.txt
firefox -v >> docfile$TSM.txt
echo "The user name is: " $(whoami) >> docfile$TSM.txt
echo "The kernel version is: "$(uname -a | awk '{print $3}') >> docfile$TSM.txt
echo "The architecture is: "$(uname -a | awk '{print $13}') >> docfile$TSM.txt
if [ $(cat /sys/block/sda/queue/rotational) -eq 1 ]; then
echo "The system has an HDD" >> docfile$TSM.txt
fi
if [ $(cat /sys/block/sda/queue/rotational) -eq 0 ]; then
echo "The system has an SSD" >> docfile$TSM.txt
fi
echo " Starting screen recorder.... press Ctrl+C when done"
recordmydesktop --no-sound --on-the-fly-encoding