LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   write to 1 failed [No space left on device] (https://www.linuxquestions.org/questions/linux-software-2/write-to-1-failed-%5Bno-space-left-on-device%5D-4175430154/)

cyberchip 10-02-2012 04:20 PM

write to 1 failed [No space left on device]
 
We are getting this error "write to 1 failed [No space left on device]" sometime while running a shell script on a shared computer node.

This happened when the following line is called in a busy waiting loop:
if test "$A='YES' -a $B='ttt' -a ` expr $c % 6` -eq 0

It happens to other system commands as well:
cat $file | head -1

My impression is some system resource is exhausted, but I can not figure it out.

Please note, this is different with "Write error: No space left on device", which is usually caused by disk space limitation, and can be reproduced with writing to /dev/full

My questions are below:
1) Does "1" here mean stdout? How could it be out of space?
2) How to reproduce this error message (exactly same one) with the available device under /dev ?
3) How the problem can be solved?

Thanks,

Ygrex 10-03-2012 01:06 AM

you are using ksh? which version?

cyberchip 10-03-2012 11:09 AM

Quote:

Originally Posted by Ygrex (Post 4795680)
you are using ksh? which version?

Thanks for your reply. We are using ksh and here is the version information:

ksh --version
version sh (AT&T Research) 93t+ 2010-06-21


Is there anything wrong with this particular version?

Thanks,

maverick2202 10-16-2012 10:55 AM

I have same "write to 1 failed [No space left on device]" in ksh sometimes. Any idea what resource is exhausted.


All times are GMT -5. The time now is 12:31 PM.