-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_investment_genie.sh
More file actions
executable file
·61 lines (39 loc) · 1.78 KB
/
Copy pathrun_investment_genie.sh
File metadata and controls
executable file
·61 lines (39 loc) · 1.78 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
##################################################################################
# Copyright (c) 2025 Matthew Thomas Beck #
# #
# Licensed under the Creative Commons Attribution-NonCommercial 4.0 #
# International (CC BY-NC 4.0). Personal and educational use is permitted. #
# Commercial use by companies or for-profit entities is prohibited. #
##################################################################################
###########################################
############### RUN PROCESS ###############
###########################################
########## SET UP LOG FILE ##########
echo -e "\nSetting up log file...\n"
##### set log file and clear it #####
# set log with path to txt
LOGFILE=""
# clear logfile
echo -e "Clearing log file at $LOGFILE...\n"
> "$LOGFILE"
echo -e "Log file cleared.\n"
########## RUN investmentGenie_main.py ##########
echo -e "Running investmentGenie_main.py...\n"
##### set virtual environment #####
# set virtual environment
echo -e "Activating virtual environment...\n"
source ""
echo -e "Virtual environment activated.\n"
##### verify virtual environment #####
# Log the Python interpreter path
echo -e "Python interpreter path:\n" >> "$LOGFILE"
which python3 >> "$LOGFILE"
# Log installed packages in the virtual environment
echo -e "Installed packages:\n" >> "$LOGFILE"
pip list >> "$LOGFILE"
##### run investmentGenie_main.py #####
# run investmentGenie_main.py with console output to log
echo -e "Running investmentGenie_main.py and logging output to $LOGFILE...\n"
/usr/bin/python3 "" >> "$LOGFILE" 2>&1
echo -e "Script execution completed. Check the log file for details.\n"