LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 10-02-2012, 05:20 PM   #1
cyberchip
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Rep: Reputation: Disabled
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,

Last edited by cyberchip; 10-02-2012 at 05:22 PM.
 
Old 10-03-2012, 02:06 AM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
you are using ksh? which version?
 
Old 10-03-2012, 12:09 PM   #3
cyberchip
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ygrex View Post
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,
 
Old 10-16-2012, 11:55 AM   #4
maverick2202
LQ Newbie
 
Registered: Oct 2012
Posts: 1

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot write: No space left on device louk88 Linux - Newbie 9 04-22-2012 07:43 PM
No space left on device jarubyh Gentoo 3 01-11-2012 12:15 PM
No space left on device pinga123 Linux - Newbie 2 11-05-2009 01:47 AM
No space left on device even though it has free space? enine Linux - General 8 05-30-2007 05:22 PM
webmin troubles - Failed to write to /etc/webmin/module.infos.cache : No space left o coal-fire-ice Linux - Software 1 07-28-2005 11:08 AM


All times are GMT -5. The time now is 05:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration