-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Find default config file properly; do not use current directory
- Loading branch information
1 parent
b0d090f
commit 0884ff1
Showing
2 changed files
with
60 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
# | ||
# Run Baudotrss | ||
# | ||
# Use dummy test file if no config file specified. | ||
# | ||
# Find directory in which this script resides. | ||
# The code should be in ${CODEDIR}/messager | ||
# | ||
# Once running, keyboard commands are accepted. | ||
# N print all news | ||
# S Send SMS | ||
# W print weather | ||
# O off | ||
# ESC Simulate BREAK; stop printing or wake up. | ||
# CR Wait for new messages. | ||
# | ||
CODEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
TESTCFG=${CODEDIR}/configtest.cfg | ||
# | ||
echo "Program files should be in: " ${CODEDIR} | ||
if [ "$1" != "" ]; then | ||
PARAMS=$@ | ||
else | ||
PARAMS=${TESTCFG} | ||
fi | ||
echo "Configuration file and options: " ${PARAMS} | ||
# | ||
echo python3 ${CODEDIR}/messager/baudotrss.py ${PARAMS} -v | ||
python3 ${CODEDIR}/messager/baudotrss.py ${PARAMS} -v | ||
sleep 5 |