Debian :: TAR - File Has Changed While Reading

Dec 17, 2010

I am using a backup system with cron + tar. Since the server is very busy, I get often the cron-email: "The file XYZ has changed while reading". This message is a bit annoying and I see it as critical point in my backup system. I believe that this file is then not in my backup. (Is that correct?) Let's imagine the hard disk dies and I have to recover the system and my personal data, and in the night the mysql-table XYZ was not in the backup, because it was in read-usage. I would then have lost this table forever. Is there any way to tell TAR, that it should force the file to be included (if in read-usage, then wait 2 seconds and try again)?

View 9 Replies


ADVERTISEMENT

General :: Why Is Reading A FILE Faster Than Reading A VARIABLE?

May 4, 2011

I don't understand the results of a simple performance test I ran using two basic scripts (running on a high end server):

perfVar.zsh :

#!/bin/zsh -f
MYVAR=`cat $1`
for i in {1..10}

[code]...

Performance test result:

> time ./perfVar.zsh BigTextFile > /dev/null
./perfVar.zsh FE > /dev/null 6.86s user 0.32s system 100% cpu 7.177 total
> time ./perfCat.zsh BigTextFile > /dev/null
./perfCat.zsh FE > /dev/null 0.01s user 0.10s system 91% cpu 0.118 total

I would have thought that accessing a VARIABLE was way faster than reading a FILE on the file system... Why this result ?Is there a way to optimize the perfCat.zsh script by reducing the number of accesses to the file system ?

View 3 Replies View Related

Debian :: Some Of The Icons On The Desktop Changed And All Of The Icons In The Drop Down Menu On The Bar At The Top Of The Screen Also Changed?

Jun 19, 2010

I recently installed virtual box on debian and after it had finished my terminal informed me that I could remove some "unnecessary" software by use of sudo apt-get autoremove. When I did this, some of the icons on the desktop changed and all of the icons in the drop down menu on the bar at the top of the screen also changed to ordinary folder symbols. The theme that I was using also went away. I restarted the computer and it booted back into a shell prompt with no GUI. I tried to get back to the GUI using alt+f7 but it didn't seem to exist

View 2 Replies View Related

Ubuntu :: Copying File - Error Reading From File Input/output

Jun 29, 2010

I have a 7.2 GB file (VMWare virtual machine file) that I am trying to copy from its original location to the another folder OR to external hard drive...each time I try to do this, I always get the following error after the copying process reach 'exactly' 1.4 GB

Error reading from file input/output error

And I have to either Cancel or Skip

I've tried to split the files to smaller pieces but the idea didn't work as I still get the same error whenever I try to compress/ split or do any operation with this file. how I can copy this file?

View 2 Replies View Related

Ubuntu Networking :: File 'path Omyfile' Has Been Changed On The File System?

May 28, 2010

I have asked this over on Launchpad and have found bugs filed on the eclipse bug tracker but it seems to be going nowhere so I guess ill ask here.

I am using Eclipse for some development work and having saved a file, defocus the eclipse window (to test changes in a browser) when I refocus the eclipse window I get the following error...

The file 'path omyfile' has been changed on the file system.Do you want to replace the editor contents with these changes?

I have searched and searched and this seems to be a CIFS/SAMBA problem. I even found one solution suggesting that changing his mounts from cifs to smbfs fixed his problem however that would appear not to be an option for me since using smbfs in the fstab causes cifs mounts. This problem would seem to occur in Bluefish as well as some other IDE's so it is not an Eclipse issue.

---------- LINKS TO RELATED ----------
Launchpad Question
Eclipse Bug
--------------------------------------

View 2 Replies View Related

Ubuntu Servers :: Not Reading XML File?

Jan 28, 2011

I recently set up a server in my house using Apache 2 running off Ubuntu 10.10 Netbook edition (no, the computer is a desktop). I tried running the website on a few computers in house and all the images and scripts seem to load fine but it is unable to read from the data.xml file through javascript. This leaves all of the web pages empty because all of the content is parsed from the xml file through javascript. I tried debugging with google chrome and after running this code to load the xml file:

if (window.XMLHttpRequest) {
// For IE7+, Firefox, Chrome, Opera, Safari
xmlhttp = new XMLHttpRequest();
}

[Code].....

the xmlhttp.responseXML is null and the script crashes. Could this be a permission issue? I tried setting the data.xml file to read-write permission for any user but that didn't work.

View 1 Replies View Related

General :: Reading Contents Of PDF File?

Jun 8, 2011

is there any API to read content of PDF file & store it in buffer?

View 14 Replies View Related

General :: Reading Info From One File In To Another?

Nov 17, 2010

been playing around making a server to play some games on running centos 5.5

what ive spent a while looking for (a few days) is a way to make a file which i will call startup this will contain some values

Code:
mod_directory="etpub"
port="27960"
log_name="console.log"
vm="0"
dedicated="2"

[Code].....

View 1 Replies View Related

General :: Reading The Contents Of A .bkf File Using A Non-Microsoft OS?

Apr 20, 2010

I have a .bkf backup file, created by the Backup utility that Microsoft provides with Windows XP. Is there a way to read the contents of the file using a non-Microsoft OS, preferably Mac OS X or Linux?

View 1 Replies View Related

Ubuntu :: Gnucash - Bug Detected While Reading QIF File

May 16, 2010

Running 10.04 64bit. Installed the latest Gnucash from repositories. Using Quicken 2003 and exported an account to a qif file. When trying to import to Gnucash the error "A bug was detected while reading the QIF file." displays. This, at least is more than I was able to do previously (prior to 10.04 and several earlier versions of Gnucash running in 8.04 through 9.10). Before it would cause Gnucash to crash and shutdown. I select a specific account with categories from Quicken to export. I can import to KMymoney and use it but that program is not compatible with the wife and does not do reconciliation reports by default.

View 3 Replies View Related

Programming :: Reading File - Output From Xrandr -q

Jul 24, 2010

Code:

I'm trying to make several files: each named after the display and containing resolutions. But for some reason I get null when trying to read lines.

View 2 Replies View Related

Networking :: Pxe Booting Is Not Reading Kickstart File?

Jun 27, 2010

i am trying to boot linux pc from network booting.. so using pxe,tftp,dhcp(1).i configured my /etc/dhcpd.conf file as...

ddns-update-style none;
ignore client-updates;
allow booting;

[code]....

View 5 Replies View Related

General :: Bash: Reading File Into Array?

Dec 2, 2010

I have a file named file.txt with the following contents

Code:

19 man
24 house
44 dyam
90 random

I want to read the file into array and store each line in each index. I've tried using the following code.

Code:

dataarray=($( < file.txt ))

It stores each word in each index rather than each line in each index.

View 3 Replies View Related

General :: Oracle - Reading Alert Log File?

Mar 2, 2011

My requirement is that I wanted a shell script which should read the alert.log(oracle) and should send the alert to my email if any error encountered on daily basis. I have a script which does the same job but at the same time it creates a new alert.log whenever any error occur. But I don't want the new alert log I wanted to read the same alert log daily and if any new error come should alert as email.

View 3 Replies View Related

General :: Reading File Into Variable In Bash?

Mar 21, 2011

I know that cat can output the file, but how do you store that output in a variable to process:

Code:

CONTENT=cat file.txt

This doesn't seem to work?

View 3 Replies View Related

General :: Reading A File From A Remote Server?

Oct 15, 2010

I have an situation where I want to read a file into my script that lie on a remote server. I have ssh-keys set up just don't know how to do this.

View 7 Replies View Related

Programming :: Reading A Binary File Which Is In Hexadecimal

Jan 9, 2011

I have a binary file, which I need to process using my C++ application. Only thing I know is first chunk of the file is long, second chunk is int, third chunk is char etc... The binary file actually contains something like below. (which is represented in hex base).

D7 07 00 00 00 00 00 00 37 18 00 00 DE 07 ............ so on.....

I need to procees the file in the following way.

* I know the first data segment in my file is long. So it takes 4 bytes.
* so I need to read the first four bytes. That is D7 07 00 00.
* Then I need to reverse this as 00 00 07 D7.
* Finally I need to get the decimal value of above hexa decimal line. ( 00 00 07 D7)
* i.e. 00 00 07 D7 (in hex) = 7D7 (in hex- after removing leading 0 s) = 2007 (in decimal)

Like wise I need to process the whole file.

View 14 Replies View Related

Programming :: Reading Text File Into An Array

Oct 20, 2010

I know that this is a really simple thing to do but I just can't figure it out. How do I read a text file into an array in C++?

View 3 Replies View Related

Programming :: Reading A File Of Data In An Array?

Feb 10, 2011

I have two files of data with different numbers of columns and rows. I want to read this two files in two arrays and then compare for example the second column of first data file with the third column of the other text file and if the difference between of two numbers is less than a threshold then the program print the information in the rows which fulfill this condition in the third text file. I have written below program but the problem is that it does not go through all rows of second file.

declare -a a
declare -a b
r=` awk '{n++} END {print n}' second.txt `
echo $r
awk '
{

[Code]....

Actually I have two data files one of them contains 44406 and the other one has 12066 rows and I want to check whether the difference between the components of two specific columns is less than a threshod but I have simplified it here. I had written this code and then I have realized that this code just goes through the number of rows as the same as the first.txt file and ignores the rest. I could not find the problem yet.

View 2 Replies View Related

Programming :: Reading A Simple File Format In C?

Dec 16, 2010

I made a string key-value mapping struct in C, and functions to add and remove entries. I would also like to write a function to read in this file format:

Code:
key: value
another: another value

[code]...

View 14 Replies View Related

Programming :: Reading From Text File In Bash?

Nov 8, 2010

I need to Read a path of a file witch is written in Text file i used this

Code:

FILENAME=$1
while read line
do
echo $line
done < $FILENAME

it worked and showed me the Line witch was written in my file but now my problem is how am gonna use that line as a path i mean for example if am gonna execute a linux command on that file like dpkg -i /path/to/the/file how am gonna export it from The $Line variable and use it after the command.

View 14 Replies View Related

Programming :: Reading Lines Within A File (Perl)?

Mar 16, 2011

I am trying to read certain lines within a file and give the output of the certain lines that dont equal my value, I think showing you would be easier. There is multiples of these inside one file...

Code:

LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 300lable/syncd

[code]....

I want to read everything in the file, if the status is not available then it should display the name (directly above status). If they are all availbale then do nothing. I think I know how to do it which includes putting the info in string form and placing in hash but it is proving to be out of my skill range.

View 12 Replies View Related

Programming :: Reading Specific Lines From A File?

Sep 10, 2009

To save on the writing of WAY to many files with very little in them, I want to put it all in one file and read a specific few lines. There will be six variables to be read at a time. Format is as such:

//Set 1
string name
5
12

[code]....

From name to 5th number is a set. The name will be of different lengths for each set. This will be a big file of probably 40+ sets. My problem lies in reading one and only one set be it set 5 or set 34. It needs to be done in C++.

View 2 Replies View Related

Ubuntu Networking :: Broadcom On 2.6.34 - Reinstall Error Code: Reading Package Lists ... Done Building Dependency Tree Reading State Information

May 20, 2010

i installed kernel 2.6.34 to fix my lid closing issue, and that went great. but now when i go to reinstall my broadcom i get this error. Code: Reading package lists... Done Building dependency tree Reading state information... Done bcmwl-kernel-source is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up bcmwl-kernel-source (5.60.48.36+bdcom-0ubuntu3) ... Removing old bcmwl-5.60.48.36+bdcom DKMS files...

[Code].....

View 9 Replies View Related

Debian :: Can't Scroll Up/down In Debian Installer (even After Changed Keyboard Layout)

Dec 1, 2010

when I finally wanted to install Debian to my hardrive. Somehow, how to copy it to USB drive and make it boot-able. Installation process started without problems, but it failed on step called (something like) "Find files in CD-ROM" - what was expectable, since I used USB drive. So I wanted to unmount "/cdrom" and mount my USB drive there instead. I moved to another terminal, and searched for right device. "ls /dev" does not help, since I can't scroll to see other devices. Also kernel messages - can't scroll. Tried to change keyboard layout, still didn't work. I also can't use less, because there is no apt-get installed. Another problem is, that after trying to mount only viewable device (/dev/sda1), mount failed bacause I gave there invalid argument, or directory didn't exist. (Note that I created directory in /mnt/... or /media/... first). So I am asking - how can I remap keyboard to use those page up/down keys?

View 12 Replies View Related

Fedora :: Tail: Cannot Open `+124' For Reading: No Such File Or Directory

May 29, 2010

Installed Fedora 12 in vmware and during the installation of a professional program versioned 2003, following error encountered.

tail: cannot open `+124' for reading: No such file or directory
gzip: tmptarfile.tar.Z: not in gzip format
tar: This does not look like a tar archive
tar: Error exit delayed from previous errors
extract error, installation cannot proceed.

Checked the google and tried ncompress and export_posix2_version=199209, but the problem persists.Is fedora compatible to this program, MEDICI 2003 ver?

View 4 Replies View Related

Ubuntu :: Reading Lines From File And Executing Scripts?

Jul 21, 2010

I am trying to create a script that reads a list of url's from a text file and then executes the same script for each line. This is what I am looking for:

elinks -dump $(url's in file, one by one) | grep "reply" > jobs.txt

View 6 Replies View Related

Ubuntu Servers :: Word Reading Failure From File

Nov 14, 2010

I have 2 Ubuntu machines up & running on a small network. Both are running SAMBA servers. One several years old & has a rather old version of Ubuntu. The other, quite new & has a version about 9 months old.The newest has a problem. When working with large & complex Word documents, it will periodically generate an an error on the work station.

"Word failed reading from this fille (xxx specifies file we are working on). Please restore the network connection or replace the floppy disk drive". The it crashes Word & unsaved work is lost.The error never occurs when using the old server, only the new.

View 1 Replies View Related

Programming :: Reading And Writing White Spaces To A File?

Dec 2, 2010

I am trying to read a file character wise and trying to write the same character to another file. In this process, I unable to read and write white spaces successfully to the new file. The script reads the white spaces but while writing the white space is lost. The section of the code, is given below. Please advice how can i read and retain the white space while writing to a new file.

Code:

if [ -s f_test.txt ] && [ -f f_test.txt ]; then
echo "File Exists !!"
while read -n1 char; do

[code]....

View 2 Replies View Related

General :: Reading Changing File In Real Time

May 27, 2010

I know this command exists I just can't seem to find it. I want to see the last few lines of a file as more are added in real time. Can someone point me in the right direction?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved