File turns into a directory error
by jy824212 from LinuxQuestions.org on (#56SN1)
Hi,
Recently I have encountered a bug in my Linux kernel.
I am trying to perform the following command in my startup script called example.sh:
echo 1 > /var/opt/lab/example.log
5 out of 100 times in my Syslog I captured:
It shows me this error:
/usr/bin/example.sh: line 494: /var/opt/lab/example.log : Is a directory
From my understanding, i dont think this is possible.
I hope anyone can share some ideas with me.
[QUESTION]I can not determine where does this example.log directory comes from I need tips on trouble shoot this. Is it linux kernel driver related ?
Best Regards,
Jiye


Recently I have encountered a bug in my Linux kernel.
I am trying to perform the following command in my startup script called example.sh:
echo 1 > /var/opt/lab/example.log
5 out of 100 times in my Syslog I captured:
It shows me this error:
/usr/bin/example.sh: line 494: /var/opt/lab/example.log : Is a directory
From my understanding, i dont think this is possible.
I hope anyone can share some ideas with me.
[QUESTION]I can not determine where does this example.log directory comes from I need tips on trouble shoot this. Is it linux kernel driver related ?
Best Regards,
Jiye