SMS messages should now print properly to files with wierd chars
This commit is contained in:
		
							parent
							
								
									0d13928595
								
							
						
					
					
						commit
						8622794068
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		|  | @ -65,11 +65,11 @@ echo "$ids" | while read -r id; do | |||
| 
 | ||||
| 	# Store the message in the log file | ||||
| 	echo "RECIEVED" | ||||
| 	echo "SENDER: $number" >> $log | ||||
| 	echo "TIME: $(date -d "$time")" >> $log | ||||
| 	echo "----" >> $log | ||||
| 	echo -e "$text" >> $log | ||||
| 	printf '\00\n' >> $log | ||||
| 	echo "SENDER: $number" >> "$log" | ||||
| 	echo "TIME: $(date -d "$time")" >> "$log" | ||||
| 	echo "----" >> "$log" | ||||
| 	echo -e "$text" >> "$log" | ||||
| 	printf '\00\n' >> "$log" | ||||
| 
 | ||||
| 	mmcli -m "$modem" --messaging-delete-sms="$id" | ||||
| done | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue