-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.txt
More file actions
executable file
Β·67 lines (49 loc) Β· 2.21 KB
/
commands.txt
File metadata and controls
executable file
Β·67 lines (49 loc) Β· 2.21 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
62
63
64
65
66
67
====================================================
CRONTAB COMMANDS - SecurityAdvisor Copilot Scripts
====================================================
STEP 1 β Make scripts executable (run once):
---------------------------------------------
chmod +x /opt/copilot-hive/copilot-improve.sh
chmod +x /opt/copilot-hive/copilot-audit.sh
STEP 2 β Trust the project folder (run once as root):
------------------------------------------------------
cd /opt/yourproject && copilot
# When prompted, choose: "Yes, and remember this folder for future sessions"
# Then press Ctrl+C to exit
STEP 3 β Open crontab editor (as root):
----------------------------------------
crontab -e
STEP 4 β Paste these 2 lines into crontab and save:
----------------------------------------------------
# SecurityAdvisor - Improve features (runs at 1,3,5,7,9,11,13,15,17,19,21,23)
0 1-23/2 * * * /opt/copilot-hive/copilot-improve.sh
# SecurityAdvisor - Audit & fix GUI/scanner (runs at 2,4,6,8,10,12,14,16,18,20,22)
0 2-22/2 * * * /opt/copilot-hive/copilot-audit.sh
STEP 5 β Verify crontab was saved:
------------------------------------
crontab -l
STEP 6 β Monitor logs in real time:
-------------------------------------
tail -f /opt/copilot-hive/copilot-improve.log
tail -f /opt/copilot-hive/copilot-audit.log
SCHEDULE SUMMARY:
-----------------
1:00 AM β copilot-improve.sh (add/improve features)
2:00 AM β copilot-audit.sh (audit & fix)
3:00 AM β copilot-improve.sh
4:00 AM β copilot-audit.sh
5:00 AM β copilot-improve.sh
6:00 AM β copilot-audit.sh
... repeats every 2 hours, staggered by 1 hour, all day
MANUAL TEST (run scripts immediately without waiting for cron):
---------------------------------------------------------------
/opt/copilot-hive/copilot-improve.sh
/opt/copilot-hive/copilot-audit.sh
FILES REFERENCE:
----------------
/opt/copilot-hive/copilot-improve.sh β Feature improvement script
/opt/copilot-hive/copilot-audit.sh β GUI audit & fix script
/opt/copilot-hive/copilot-improve.log β Improve script log output
/opt/copilot-hive/copilot-audit.log β Audit script log output
/opt/copilot-hive/commands.txt β This file
/opt/copilot-hive/prompts-explained.txt β Prompt explanations