Removed suffixes from uploaded files since the prefixes already identify
the type of file, and many logs already have the .log suffix which
results in names like "L__service.log.log".
- `_info.txt` - Contains basic information about the client
- `_processes.log` - Log of processes as they are run on the client
- `F__filepath` - Files that are transferred once
-- `L__logpath.log` - Log files that are continuously transferred, new lines are
+- `L__logpath` - Log files that are continuously transferred, new lines are
transferred as they are written on the client
-- `C__commandname.cmdlog` - Command output, continuously transferred
+- `C__commandname` - Command output, continuously transferred
Logs can be monitored as they come in using `lnav`:
elif [ "$COMMAND" = "log" ]; then
echo -n "Filename: "
read -r TMPFILENAME
- verify_input "L__${TMPFILENAME}.log"
- print_status write_to_file "L__${TMPFILENAME}.log"
+ verify_input "L__${TMPFILENAME}"
+ print_status write_to_file "L__${TMPFILENAME}"
unset TMPFILENAME
elif [ "$COMMAND" = "command" ]; then
echo -n "Filename: "
read -r TMPFILENAME
- verify_input "C__${TMPFILENAME}.cmdlog"
- print_status write_to_file "C__${TMPFILENAME}.cmdlog"
+ verify_input "C__${TMPFILENAME}"
+ print_status write_to_file "C__${TMPFILENAME}"
unset TMPFILENAME