-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipe.cgi
25 lines (18 loc) · 824 Bytes
/
pipe.cgi
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
###################################################################
## This is a pipeline code that executes all perl files for #####
## cleaning, validation steps #####
## Author: Vijay Karingula #####
## Code: CGI supporting bash script #####
###################################################################
#!/bin/bash
echo "Content-Type: text/html\n\n"
echo
#getting the name of the file to be loaded into database
filename=$(perl filename.pl)
#creating a directory to store the intermediate text files
mkdir data
perl dataDump.pl $filename data
#creating the database tables and setting constraints as per the schema design
perl dbSchema.pl
#finally loading the data from text files into database
perl load_orders.pl data