LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2013, 08:19 PM   #1
eamesj
Member
 
Registered: May 2006
Posts: 54

Rep: Reputation: 1
tar multivolume timeout - file descriptor too old


Hi all

A user is complaining that when they are writing a large tar they are not really paying attention so when the tar asks for the second volume it gets missed with the error "file descriptor too old". I have not replicated this, how long does it take? Other than telling him to pay more attention is there a workaround? Can you put a longer I/O wait or temporarily remove the timeout?

The script that's doing the tar is written in bash, any suggestions?

Thanks.
 
Old 02-22-2013, 12:56 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by eamesj View Post
Hi all
A user is complaining that when they are writing a large tar they are not really paying attention so when the tar asks for the second volume it gets missed with the error "file descriptor too old". I have not replicated this, how long does it take? Other than telling him to pay more attention is there a workaround? Can you put a longer I/O wait or temporarily remove the timeout?

The script that's doing the tar is written in bash, any suggestions?
Without seeing the script, it's hard to say what it's doing or how. Also, you don't say what version/distro of Linux you're using, or anything about the version of tar (which may affect what options you have).

First step would be to post the script here, and maybe we'll have some ideas. But really, the problem is with your user; 'fixing' this issue will only make things worse in the long run, in my experience. If you adjust it to 10 minutes, say...all they'll do is say "Gee, I only used to have five....I can make it to the snack machine now!", and you'll then have to bump it to 20...repeat ad-nauseum. No matter what you do, the user will say they need more/less time, more/less options, etc. There is no perfect solution...tell the user to pay attention, and get the job done.
 
  


Reply

Tags
descriptor, stdin, tar



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
Help creating multivolume tar archive Thymox Linux - Software 7 09-29-2009 02:07 AM
More tar issues - listing files in a single tar from a multivolume borks Thymox Linux - Software 4 09-23-2009 07:48 PM
Creating multivolume archives using tar sharathksin Programming 6 03-06-2006 05:00 AM
Extracting multivolume tar Cichlid Linux - Software 3 12-21-2003 01:54 AM
How to set timeout value when reading from a file descriptor. George2 Programming 7 10-26-2003 01:15 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:39 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
Open Source Consulting | Domain Registration