Actually, what the script does is attempts to connect to a server, if the attempt comes back successful then the timestamp should be updated to reflect todays date. However, if the attempt failed, then the timestamp (line) should be left alone. I unfortunately do not want to create a new file, rather I'd just like to update the timestamp if success, and leave the line alone if fail.