Awesome, thanks! It is working now. I suppose if it is a bug, and is ever fixed, I will have to re-do it, but that should be easy. Below is my test script (just for reference). And again, THANKS so much! I learned programming on a Vic-20 in the early 80's, and sometimes the modern stuff is a bit hard for me to wrap my head around, but If I can get a direction, I can usually figure it out!
#!/usr/bin/python3
from datetime import datetime
import sys
import shlex
def WriteLog(sMessage, WriteDate = True, lfName = "/home/muzicman0/log.txt"):
now = datetime.now()
dt_string = now.strftime("%m/%d/%Y %I:%M:%S %p")
f = open(lfName, "a")
if WriteDate == True:
f.write(dt_string + ": " + sMessage + "\n")
else:
f.write(sMessage + "\n")
f.close()
sArgList = shlex.split(sys.argv[1])
WriteLog("First Argument is: " + str(sArgList[0]))
WriteLog("Second Argument is: " + str(sArgList[1]))