Timeline for How to log from inside the script along with stdout
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 6, 2015 at 21:06 | comment | added | NishantM | its ksh script , but i even tried with bash. And yes i did mention the file name in place of $LOGFILE | |
| Oct 6, 2015 at 20:20 | comment | added | cas | Is your script a bash script, and have you defined $LOGFILE? | |
| Oct 6, 2015 at 19:13 | comment | added | NishantM |
,This isn't working for me. As soon as i add the above line at the start of my script, the script gets stuck :( exec &> >(tee "$LOGFILE") is behaving very strangely, it is creating a ?? ( zero byte) file in the directory rather than the log file name i specify
|
|
| Oct 6, 2015 at 6:20 | history | answered | cas | CC BY-SA 3.0 |