27 lines
682 B
Bash
Executable File
27 lines
682 B
Bash
Executable File
#!/bin/sh
|
|
# Copies the source files to the ITS system
|
|
|
|
MLFTP="/opt/pidp10/bin/mlftp"
|
|
|
|
SOURCEFILE="./src/sudoku.s"
|
|
TARGETFILE="SUDOKU 1 JALI;"
|
|
PUZZLEFILE="./src/puzzle_1.sudoku"
|
|
PUZZLETARGET="PUZZL1 SUDOKU JALI;"
|
|
|
|
|
|
# Functions
|
|
log_message() {
|
|
local level=$1
|
|
local message=$2
|
|
timestamp=$(date +'%Y-%m-%d %H:%M:%S')
|
|
#echo "$timestamp [$level] $message" >> "$LOG_FILE"
|
|
echo "$timestamp [$level] $message" # Also print to console (optional)
|
|
}
|
|
|
|
# Main execution
|
|
log_message "INFO" "Uploading $SOURCEFILE to $TARGETFILE on ITS"
|
|
$MLFTP -w its "$TARGETFILE" $SOURCEFILE
|
|
|
|
log_message "INFO" "Uploading $PUZZLEFILE to $PUZZLETARGET on ITS"
|
|
$MLFTP -w its "$PUZZLETARGET" $PUZZLEFILE
|