CLIx Platform script for quntative data collection, version v1, Notes (for CG/MZ/RJ/TS)
State: Chhattisgarh, Rajasthan, Mizoram and Telangana
Release date: 20th November, 2017

Instruction to apply the update patch

Download the update file:

files related to activity of data collection dt 20-11-2017 :
    https://clixplatform.tiss.edu/softwares/clix-schoolserver-updates/update-patch-archives/ad-hock-requested-scripts/adhock-research-quantitative-data-collection.sh
    https://clixplatform.tiss.edu/softwares/clix-schoolserver-updates/update-patch-archives/ad-hock-requested-scripts/README-adhock-research-quantitative-data-collection.md

Copy content (above downloaded files) in Pendrive (not inside any directory please - directly inside the pendrive {root of pendrive})

Now we have files in pendrive. Insert pendrive in the School server

Check the connection of drive with lsblk command

Command : ``` lsblk ````
Expected output:
    ```
    [email protected] ~ $ lsblk 
    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda      8:0    0 931.5G  0 disk 
    |-sda4   8:4    0     1G  0 part /usr
    |-sda2   8:2    0     2M  0 part 
    |-sda9   8:9    0 929.2G  0 part /
    |-sda7   8:7    0    64M  0 part 
    |-sda3   8:3    0     1G  0 part 
    |-sda1   8:1    0   128M  0 part /boot
    `-sda6   8:6    0   128M  0 part /usr/share/oem
    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sdb      8:0    0 931.7G  0 disk 
    `-sdb1   8:1    0   16G  0 part 
    ```

Became root user:

Command : ``` sudo su ```

create /mnt/:

Command : ``` mkdir /mnt/ ```

Mount the pendrive:

Command : ``` mount <device> /mnt/ ```
Example : ``` mount /dev/sdb1 /mnt/ ```

Change the directory to /mnt

Command : ``` cd /mnt/ ```
Expected output:
    ```
    [email protected] ~ $ cd /mnt/
    [email protected] /mnt $ 
    ```

Update command (After the patch is applied it will display the message “Patch 4 update finished.”)

Command : ``` bash adhock-research-quantitative-data-collection.sh ```

Information about the script

- This script file is created as per the request from Research Team and Sadaqat for qantitative data collection
- This is for ad-hock qantitative data collection
- This script will create a tar file of all the csvs. 
- It will copy all the csvs in a directory with the name as school id (rj36 or mz13). Finally tar file will be created for that directory.
- FTs will collect and upload it in google drive.