General :: Prevent Author New Files Overwrite Changes
Jun 29, 2011
I use software where I have to edit a text file in order to get my custom needs from it. Problem is that when the author puts out an update, it always overwrites my changes and I have to spend hours trying to compare the file, re-edit my changes back in, etc. This happens sometimes as often as once per month.
I've wondered if there might be a linux tool or commands which would look through the new file, then at my old file, changing only the text which already exists while not breaking anything else. Most software authors seem to know how to do this but since mine doesn't, how can I accomplish this on my own?
View 7 Replies
ADVERTISEMENT
Apr 15, 2011
I run a command in a Linux terminal, the result was written to the desied folder. After I modified the command and rerun it. The old files are still there and not overwritten at all. Only it is successfull after I deleted the old files and run the command.
View 3 Replies
View Related
May 5, 2010
currently there's a xxx dir already in /home/yyy I'm trying to overwrite itcp -fr ../xxx /home/yyy/doesn't work still prompts me to overwrite the individual files. how do I fix it?
View 4 Replies
View Related
Jun 10, 2010
I'm using CentOS 5.5 with smbclient 3.0.33-3.28-el5 (latest version in repo), and I can't overwrite files in my Samba store. I am not the admin for the Windows server that hosts the share, so there isn't anything I can do server side. But I do have write permission to the server. I know the server runs Windows XP or Server 2003; I don't know which. I can delete the file, and then copy the new version over, but I can't overwrite it. Using the cp command I'll get this error:
[jonescb@localhost ~]$ cp foo.txt /mnt/si_storage/foo.txt
cp: cannot create regular file `/mnt/si_storage/foo.txt': No such file or directory`
And if I edit a file on the server using vim, I can save it once, but if I save it again I get this: "/mnt/si_storage/foo.txt" E212: Can't open file for writing This is my /etc/fstab entry for the samba server: //192.168.1.2/SI_STORAGE /mnt/si_storage cifs username=myuser,password=mypass 0 0 I can overwrite files just fine on my XP machine. The CentOS box is the only one having problems.
View 1 Replies
View Related
May 17, 2010
I just read the Linux scp command issue question and it reminded me that I regularily forget to specify the colon in the host part of a scp command, and thus copying a file locally instead of copying to a remote host, e.g. I do
scp foo host
instead of
scp foo host:
But I never use scp to copy a file locally. So I wonder if there is a way to make scp fail if both (the source and destination) arguments refer to local files.
View 1 Replies
View Related
May 29, 2010
i want to know why do we need to patch files based upon diff when we can directly overwrite the old file with the new file.
View 4 Replies
View Related
Feb 10, 2011
what if the root user by mistakenly stops/starts any service and tried to remove those traces from the log files and save those log files. Then how can we ensure that our log file is trusted. Is there any way where even the root(superuser) also cant edit/modify the contents of the /var/log/* files.
View 2 Replies
View Related
Aug 16, 2010
The following are the two tex input files written in vi and compiled with pdflatex. In the first case the document details (author, date etc) are displayed as desired but are omitted in the second case. The only difference is the use of maketitle.
Case 1:
documentclass{article}
author{Name}
date{}
itle{Title}
Begin{document}
maketitle
Text to be inputted
end{document}
Case 2:
documentclass{article}
author{Name}
date{}
itle{Title}
Begin{document}
Text to be inputted
end{document}
View 2 Replies
View Related
Jun 17, 2010
I'm using CentOS 5.5 with smbclient 3.0.33-3.28-el5 (latest version in repo), and I can't overwrite files in my smb store.The CentOS box is merely a client of the smb share,and I am not the admin for the Windows server that hosts the share, so there isn't anything I can do server side. But I do have write permission to the server. I'm 95% certain that the server runs Windows Server 2003.I can create a new file,but if I need to overwrite it I need to delete the file, and then copy the new version over.My Windows XP machine can overwrite files perfectly fine.
Using the cp command I'll get this error: (/mnt/storage/foo.txt already exists)
[jonescb@localhost ~]$ cp foo.txt /mnt/storage/foo.txt
cp: cannot create regular file `/mnt/storage/foo.txt': No such file or directory`
View 5 Replies
View Related
May 18, 2010
I need to overwrite the first say 50 or so lines of an xml file on an everyday basis. The first 50 lines of the file are always the same and the 50 lines they get replaced with are always the same. Is there a way to create a file with the 50 new lines and somehow copy/merge/overwrite the larger file such that the 50 original lines would be replaced but the remainder of the file would be untouched?This seems simple, there has to be a way to do it. I'm just not smart enough to figure it out.
View 2 Replies
View Related
Dec 3, 2010
I seem to be having some trouble using k9copy6; I cannot seem to use the DVD Author tool, every time I attempt to open it it spits out:
Cannot open then library libavcodec
Cannot open then library libavformat
Cannot open then library libswscale
View 3 Replies
View Related
Jun 24, 2010
I generally use Nero Linux for my optical disk authorization needs. But after installing Fedora I've noticed that Nero is not writing data in disks. It tried to make an .nrg image of the data in my hard disk. Then I tried k3b but seeing this error message:
MP3 Audio Decoder plugin not found.
K3b could not load or find the MP3 decoder plugin. This means that you will not be able to create Audio CDs from MP3 files. Many Linux distributions do not include MP3 support for legal reasons.
Solution: To enable MP3 support, please install the MAD MP3 decoding library as well as the K3b MAD MP3 decoder plugin (the latter may already be installed but not functional due to the missing libmad). Some distributions allow installation of MP3 support via an online update tool. Installed libmad without success........
View 7 Replies
View Related
May 26, 2011
How to use cp command without to overwrite target file permissionsFor examplecp /tmp/file /home/fileI dont want to change chown and chgrp on /home/file
View 2 Replies
View Related
Mar 1, 2011
Is there any way to stop Dolphin from creating .directory files in all my directories when I am viewing hidden files?
I am pressing Alt+. to view hidden files in a directory.
Other file managers seem to do it fine.
View 5 Replies
View Related
Mar 8, 2011
I try to write to a file "date > file" but Linux says 'cannot overwrite existing file'. I tried chmod 755 but still cannot write to the file. What should I do?
View 2 Replies
View Related
Jan 18, 2010
there's a command to overwrite a directory.
View 6 Replies
View Related
Feb 22, 2011
I have a Debian OS installed (6.0), installed on a single partition, which was running out of space. So I copied all the data in /home to a spare partition, then edited fstab to mount this new partition as /home.
This works fine. But now of course I have the /home data both on the new partition (the one that is now being mounted and used), and also still on the original partition, though this directory is no longer mounted by the OS, so I can't directly 'get at' the data to delete it.
I could easily get into the partition from another OS and delete the unneeded /home data of course but I was just wondering; as this data is no longer 'seen' by the OS, will it be overwritten automatically by the OS when it needs more space, as it does with data that has been deleted from the filesystem, or would it be reserved somehow, still using up space?
View 6 Replies
View Related
Mar 9, 2010
I just noticed that even if I remove read and write permission for my files, another user can access those files if they use 'sudo'. The ls -l for the folder containing my file (let's call is myfile') looks like this.
"
Code:
-rw------- 1 username groupname 43 2010-03-09 20:23 myfile
"
I logged into another account I have made for myself (which had admin privileges) and then did
Code:
sudo nano /username/home/myfile
and ... the file was opened and I was able to read it. So what's the point of having user permissions if someone can bypass them by using sudo?
View 9 Replies
View Related
Sep 12, 2010
I'm running Apache2 and PHP5, hosting multiple virtual domains on my server. The directories of the domains (/var/www/<domain>) aren't publicly readable, so the websites can't access each others content as the scripts are run using different user accounts. They can, however, access other folders on the system that have public access for any user. I tried using the following PHP code, which listed the filesystem root:
Quote:
<?php
$handle=opendir("../../../..");
while($file=readdir($handle)){
echo $file . "<br/>";
}
?>
I will be hosting sites for other people so I don't want them to be able to access my entire server with PHP. Is there any way i can do this?
View 2 Replies
View Related
Feb 20, 2010
Code:- '-K': Allow users to resume and upload files, but *NOT* to delete or renamethemDirectories can be removed, but only if they are empty. However,overwriting existing files is still allowed (to support upload resume) . Ifyou want to disable this too, add -r (--autorename) .This is pretty much what I want to do, but I only want this done to ONE user on the server. I have many user accounts, but only one of them I want to prevent users from issuing the "delete" command and deleting everything.
View 2 Replies
View Related
Jun 17, 2011
I have a list of files that I am copying around for various purposes. What my current command looks similar to this:cat list_of_files | xargs -I {} /bin/cp -f {} /destination/dirI am using the full path to cp so that the default alias of cp -i does not take effect. However, when I find a duplicate file, it is overwriting any that have already been copied. What I would like to do is to force cp to not overwrite and not prompt.
View 2 Replies
View Related
Aug 15, 2011
I am trying to make a floppy image with a working file system so that I can test a 2 stage boot loader. When I attempt to mount the floppy and then cp the second binary over to it, mount gets all unhappy. Here are the steps I am trying to use:
dd if=/dev/zero of=floppy.img bs=512 count=2948
mkfs.vfat floppy.img
dd if=boot1.bin of=floppy.img bs=512 count=1
[Code]....
View 2 Replies
View Related
Aug 24, 2010
I have problem with bootloader , mean to say , after installing fedora 13 my windows 7 bootloader will overwrite, and when i install windows7 boot loader my fedora 13 bootloader will overwrite vice versa
View 7 Replies
View Related
Jan 5, 2010
For example I want a file to be processed by sed, and then overwrite the file with sed's output. I would try this:
Code:
sed '<regex goes here>' myfile > myfile
But it doesn't work as expected, instead it empties the file (I am thinking that as the first byte comes out of sed, it overwrites the whole file and sed has nothing more to do). How can I make this work?
View 14 Replies
View Related
Dec 27, 2009
One of my machines is a desktop with a WIFI connection. This machine is not configured to use NetworkManager; instead, it still does things the old way via /etc/sysconfig config files.
Problem: this WIFI connection requires wpa_supplicant. By default, F11 brings up the network at priority 10 and wpa_supplicant at priority 23. So dhclient fails its initial attempt to obtain an IP for wlan0 (it will retry and succeed but by then it's too late). This causes other network-related startup tasks to fail. For example, ntpdate fails. This is problematic for systems with faulty CMOS clock batteries since ntpd will reject updates if the clock skew exceeds some threshhold (so ntpdate is usually used to preset the clock).
The workaround is easy enough: add "Required-Start: wpa_supplicant" dependency to the init stanza in /etc/init.d/network and let chkconfig figure out how to rearrange the priorities. This ensures that wlan0 is actually capable of sending a DHCP request when dhclient starts.
This works fine...until yum update decides to replace the scripts in /etc/init.d and, consequently, things go back to the old, broken startup priorities.
So my question: Can yum be told to not change files in /etc/init.d that have been modified by the administrator? Or to at least not overwrite the LSB-style init stanza in those files?
Alternatively, is there a better way to do this that's not vulnerable to updates? I tried playing with the modprobe.conf "install" option to pre-start wpa_supplicant before wlan0 comes up but that has so far been unsuccessful.
View 5 Replies
View Related
Aug 18, 2010
I had some help via email from someone drafting my CV into the correct table format with open office. It's a .pdf file but now unfortunately lists the author in the document tab of properties as that person.
Is there anyway to change it to my own name, and also how do I 'secure' the document so that it's not easy for people viewing it to copy and paste, I've heard this is why many people now use .pdf for their CVs/rsums?
View 2 Replies
View Related
Jan 26, 2010
I am writing a shell script that unzips a ZIP file into an existing hierarchy of files, potentially overwriting some of the files. The problem is that the unzip command asks for confirmation: replace jsp/extension/add-aspect.jsp? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
This is unacceptable for a script.I need an option to force unzip to overwrite the files.I did not find in the man page nor with Google.
View 1 Replies
View Related
Apr 23, 2011
I have a Pentium 4 HP laptop with Linux only OS, Xubuntu 10.04 LTS
I hadn't powered this one up in a long time and when I did, of course, the Update Manager informed me there were a LOT of updates (around 400 files) and of course I said OK.
It never quite completes, giving me an error message. Apparently two different packages are trying to over write each other's data.
The two packages that fail to update are
kdelib5-data and gnome-settings-daemon
and I really don't know what to do about it.
although isn't kde one desktop environment and gnome another? And Xfce yet a third?
View 1 Replies
View Related
Jan 11, 2010
Title : Author : Price
France : Mark : 40
Persia : John : 50
how i arranged my database. I am trying to write aprogram which does a search either using Title, Author or both.
[Code]....
but i am still unclear on how i am able to make the program check if either on of the input(either $Title or $Author) is not filled up, and if one of it is not filled up, use the other one which is filled to do a search.
View 6 Replies
View Related
Aug 6, 2011
Since Ubuntu is smaller than Windows, will it entirely delete Windows to install Ubuntu? The Ubuntu installation won't affect the recovery drive, right?
View 10 Replies
View Related