Programming :: Tar; Cannot Stat: No Such File Or Directory?
Oct 5, 2010
I'm trying to backup every night a big directory (~2.5Gb) using tar+gzip.I'm calling tar like this:nice -n 19 tar --ignore-failed-read --exclude-tag-all=.kein-backup -Pczpsf '/backup/20100925233802f/archive.tar.gz' '/srv/products'And in 90% of the cases works just fine, in about 20 minutes is everything done. However, if it happens that in those minutes one file or folder from '/srv/products' gets deleted it reports me the following error:tar: /srv/products/prod14564.gif: Cannot stat: No such file or directorytar: Exiting with failure status due to previous errorsDoes it exist a parameter for tar to ignore this kind of errors? Is it there any other way to avoid these errors
Code: stuart@stuart:~/$cat showthread.php.html | grep -o [URL][^"< ]*" | uniq | head -n3 | plowdown - cannot stat '-': No such file or directory Code: stuart@stuart:~/$ awk NR==$x Musiclist.txt | cut -d/ -f6 | basename $1 .mp3 .mp3 Here's some system info on the bash i'm using:
So I have created a Bash script with the intent of the program to change the names of the files in a folder's subdirectory.The code recognises the individual subdirectories, then is able to enter into one and list the files individually, but when it tries to change their information it says;' cannot stat ' : ' No such file or directory 'As if it is looking in the directory that contains the Bash script, not its subdirectory.It is essentially saying, I see a file here called FILE but sorry, I can't change FILE because FILE doesn't exist. kweh?Is this something outside the capabilities of Bash? Am I asking too much of it? Can Bash only manipulate files that are in the same folder as the script?
can you see below command i give return me error however it has been working fine before. there is 1 directory i want to make it .tar.gz [root@sa1 script]# tar cvzf /var/opt/bkup_axigen/axigen_bkup_2.tar.gz /var/opt/axigen/domain tar: Removing leading `/' from member names tar: /var/opt/axigen/domain: Cannot stat: No such file or directory tar: Error exit delayed from previous errors
well I am a novice in Linux OS, I have a wireless card, it's a Linksys WUSB600N but it doesn't work in Ubuntu 10.10 Desktop Edition, which it is the one I have, 64 bits machine, so I read this [URL] and I did all the steps, I downloaded 2010_0915_RT3572_Linux_STA_v2.4.0.2.tar but in the last part, sudo make install I got this error
so i have no way to get connected to the internet, what is that error cannot stat `rt3572sta.ko': No such file or directory, I think thats why i can make the wireless card work.
The following errors show up when I run from the file from the term window, but are not written to log.log:
tar: /public/public/clamscans/*.txt: Cannot stat: No such file or directory tar: Error exit delayed from previous errors mv: cannot stat `/public/public/clamscans/*.txt': No such file or directory
I know with windows you can add the 2>&1 to capture error data. Is there such a thing for Linux?
I'm writing a script that takes the date attribute of a file when it was created and appending it to the name. I'm pretty close to what I need, but the date appears in yyyy-mm-dd format and I want it to read mm-dd-yyyy. What I have done so far is something like
for ((i=1;i<=50;i++)); do fdate=`stat -c %y Video Snapshot $i.png|awk {'print$1'}`; newname=Personname-$fdate-$i.png; mv Video Snapshot $i.png $newname; done
This works decently but the date comes out in the yyyy-mm-dd format. How do I change it?
I installed OpenCV and am trying the example programs. When I try to compile like in the tutorial it is not finding highgui.h.I have 64 bit Mint if that helps at all
I am running after compiling a program and I find that I get the following. How best can I avoid this as i cannot run the program. I have tried removing the offending package, although I cannot find it. I have also tried re-installing. I have also tried changing FC and F90 flags to avoid the MPI version.
error while loading shared libraries: libmpi_f90.so.0: cannot open shared object file: No such file or directory
Initially I thought - use a for loop with ls in it:
Code:
However this causes lots of problems (folders have extensions, I have duplicate folders, the names with spaces create a folder for each element of the name).
The contents of the folder is basically movies (some with subtitles). Some of the names have things like (original) or CD1 CD2 in them.
When a application is ran from the shell:fork() is calledexecve() is calledI know the shell stats the file to make sure the required permissions are allowed in the child shell. But I can not find this in the man fork. Nor can I find this in man execve. Which one of these processes/calls stats the binary to be ran?
I've just noticed a small problem I am having with my company file server. When making backups to an external NTFS drive weekly I have noticed that the file names with thai characters are not getting backed up. I receive the below error:
rsync: recv_generator: failed to stat (to the file name...) Invalid or incomplete multibyte or wide character (84)
There are thousands of files on the server that contain thai characters in there names so how do I get around this problem so it will back up all files and not just the English character ones. I read somewhere that each file would need to be converted to a different character set but this would take years as there are so many files.
When I hardcode abc.bin to inputFileName - I can open the file in cpp. But when I pass the same using an optional argument, it fails. Note that in both cases, fprintf, prints the inputFileName as abc.bin properly.
I’m new to C programming so I wrote the following program to see if everything I needed to write programs with GCC and the standard C library was already installed. I am having issues in OS 10.10.5, where I am unable to build and compile some simple code, either using Xcode or Sublime text. I decided to install Linux Mint in Virtual Box to see if it would work.
Code: Select all#include <stdio.h> void main() { printf("Hello! This is my first C program with Linux Mint "); }
For some reason, I'm getting the following error:
mint@mint-VirtualBox ~/Desktop $ gcc hello.c -o hello1 hello.c:2:19: fatal error: stdio.h: No such file or directory #include <stdio.h>
I'm trying to compile a project, but I receive the following error:
Code: Select allIn file included from monitor/gfx/field.h:14, from monitor/gfx/termapi.h:18, from monitor/gfx/termapi.cpp:16: monitor/gfx/glfont.h:8:31: error: GL/gl.h: No such file or directory monitor/gfx/glfont.h:9:33: error: GL/glu.h: No such file or directory monitor/gfx/termapi.cpp:20:30: error: GL/glx.h: No such file or directory
I have a directory called /data In this directory I have some files like abcejb.jar,12_ab_ejb.jar, shejb.jar, test I need a shell script like... 1st I want to check if there is any ejb file exists in the directory using some condition If ejb files exists I want to redirect the ejb files list to a file called list. Now I want to copy all the files in the list file to some remote system.
i was trying to Compile my c++ program..cme across this problem....but my c programs are getting compilied without any problem.I am using fedora 14. Below is the way terminal reacted to my program..
gcc prog1.cpp gcc: error trying to exec 'cc1plus': execvp: No such file or directory
In my project iam using timerfd.h file info. I included it header file, Iam using "arm-none-linux-gnueabi-gcc" compiler. This file exists in "arm-2010q1/arm-none-linux-gnueabi/libc/usr/include/sys". When i try to execute the program iam getting error: sys/timerfd.h: No such file or directory. remaining files able to find from the same location(sys/time.h, sys/ioctl.h,sys/socket.h).
Using a shell script....In a particular directory if we are adding one or more files i should get a mail to my mail id , every time when the new file is added i should get the mail.Using crontab so that it will execute automatically wen any new files are added.
I have installed QT on Slackware 13.37 x64 and when I create gui project it works ok, but I need OpenGL.When I add #include <QGLWidget>I get error No such file or directory there is my env
Im looking to use PHP to list a directory. When I click on a filename, I'd like it to automatically remove the first 16 characters off of the filename and save it to the filesystem.
I am trying to search particular directory which has files with extensions like .html,.mp3,.xml etc I have a list of such files What I am doing in my script is
for file_name in `find /home/ -name index.html -o -name song.mp3 -o -name help.xml`; do if [ $file!='' ] then
[code]....
I have around 100+ files name with some particular extension , this code works fine if the directory name does not have any special character in it like " "(white character) .
It is failing to give the output. IF I run the find command on the console the I am getting the correct file name with location
I have installed the fglrx driver on my system (radeon hd 4830; asrock 4coredual sata2 rev. 2.0; Intel Pentium(R) Dual-Core CPU E6300 @ 2.80GHz; opensuse 11.3; 64 bit). Installation of fglrx seemed to be smooth, using the manual way, generation of rpm. part from the fact that there were 4 error messages like:
"Cannot stat <temporary intallation directory>/.../libGL*" "Cannot stat <temporary intallation directory>/.../libGLE*" and the related two cp commands failing. So, what does not work now: glxgears and fgl_glxgears hang after 2-3 seconds; so does full screen playback with flash player.
I have a directory and sub-directories (4 or 5 depths). There are several type with extension in them (*.mp3, *.wma, *.jpg, etc). I would like to copy the whole directory to another location recursively but only *.mp3 files.