You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use alasql-cli in crontab but find it cannot accept a SQL statement ('No sql to process') when I write /usr/local/bin/alasql "SELECT author,count(1) as c into JSON(\"${YLOG}\") from CSV(\"${DLOG}\") where timestamp=$yesterday group by author order by author asc"
but can work in pipe mode. echo "SELECT author,count(1) as c into JSON(\"${YLOG}\") from CSV(\"${DLOG}\") where timestamp=$yesterday group by author order by author asc" | /usr/local/bin/alasql
I guess it is caused by Boolean(process.stdin.isTTY) in /usr/local/bin/alasql, but i do not know how to fix it.
I use alasql-cli in crontab but find it cannot accept a SQL statement ('No sql to process') when I write
/usr/local/bin/alasql "SELECT author,count(1) as c into JSON(\"${YLOG}\") from CSV(\"${DLOG}\") where timestamp=$yesterday group by author order by author asc"
but can work in pipe mode.
echo "SELECT author,count(1) as c into JSON(\"${YLOG}\") from CSV(\"${DLOG}\") where timestamp=$yesterday group by author order by author asc" | /usr/local/bin/alasql
I guess it is caused by Boolean(process.stdin.isTTY) in /usr/local/bin/alasql, but i do not know how to fix it.
OS: AlmaLinux 8.4
node: v16.8.0
SELinux: Enforcing
The text was updated successfully, but these errors were encountered: