Hi
I’ve had this code running for quite a while now, until recently it started to hang at the fgrep script and eventually timeout.
It must have started after I upgraded to macOS Catalina.
The file Daily.CSV is a spreadsheet on a samba share on a Raspberry Pi. I can access this file from my Mac.
The ‘search’ variable is set to a date. I have put in a specific date for this example.
The script gets the line that contains that date.
Running the fgrep command from the Mac terminal works.
Can’t see what is holding it up.
tell application "AppleScript Utility"
set DailyCSV to "/Volumes/config/readings/Daily.csv"
set search to "2019 Oct 12"
do shell script "fgrep '" & search & "' " & DailyCSV
end tell