i have this code into my sql file :
IF ((date1-date2)*60*24) > nb_minutes
THEN
DBMS_OUTPUT.PUT_LINE('You have passed the threshold');
END IF;
I want to write the message of DBMS_OUTPUT.PUT_LINE
into a log file, for exemple /tmp/test.log
.
I call my sql file from a file.sh