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

View 3 Replies


ADVERTISEMENT

Programming :: Using Piped Data As Input - Cannot Stat '-': No Such File Or Directory

Nov 6, 2010

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:

[Code]...

View 13 Replies View Related

Fedora :: BASH :: Change File Stat In Sub Directory?

Oct 23, 2010

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?

Code:
#!/bin/bash
echo enter directory

[code]....

View 6 Replies View Related

Slackware :: Install: Cannot Stat `cuda.h': No Such File Or Directory

Dec 15, 2010

I am trying to install the nvidia-drivers from Slackbuilds.org. When I try to run the SlackBuild, I get the following error:

Code:
install: cannot stat `cuda.h': No such file or directory

What am I missing?

The nvidia-kernel SlackBuild ran fine and created the kernel package.

View 14 Replies View Related

General :: Error - /var/opt/axigen/domain: Cannot Stat: No Such File Or Directory

Mar 8, 2010

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

View 2 Replies View Related

Ubuntu Networking :: WUSB600N Wireless - Error Cannot Stat `rt3572sta.ko': No Such File Or Directory

Nov 11, 2010

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

alain@alain:~/t/2010_0915_RT3572_Linux_STA_v2.4.0.2$ sudo make install
make -C /home/alain/t/2010_0915_RT3572_Linux_STA_v2.4.0.2/os/linux -f Makefile.6 install
mkdir: cannot create directory `/etc/Wireless': File exists
make[1]: Entering directory `/home/alain/t/2010_0915_RT3572_Linux_STA_v2.4.0.2/os/linux'
rm -rf /etc/Wireless/RT2870STA
mkdir /etc/Wireless/RT2870STA
[Code],,,,

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.

View 7 Replies View Related

General :: Mv: Cannot Stat `/public/public/clamscans/*.txt': No Such File Or Directory

Sep 24, 2010

I run the following file with the >log.log redirector and it does not capture errors.

#!/bin/bash
echo ************************BEGIN LOG******************************
date +"%m/%d/%Y %H:%M:%S $HOSTNAME"
cp -f /scripts/original/clamscans.log /scripts

[code]....

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?

View 2 Replies View Related

Programming :: Date Formatting From Stat Command?

Jul 23, 2010

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?

View 10 Replies View Related

Programming :: OpenCV Programming - Highgui.h: No Such File Or Directory?

Jul 1, 2010

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

View 3 Replies View Related

Programming :: Libmpi_f90.so.0: Cannot Open Shared Object File: No Such File Or Directory

Aug 6, 2010

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

View 1 Replies View Related

Programming :: Make A Folder For Each File In A Directory Then Move The File Into It

Nov 29, 2010

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.

View 15 Replies View Related

General :: Stat File For Permissions - Fork() Or Execve()?

May 6, 2011

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?

View 1 Replies View Related

Ubuntu Servers :: Rsync: Recv_generator: Failed To Stat (to The File Name...)

Apr 4, 2010

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.

View 1 Replies View Related

Programming :: Can't Open File - No File Or Directory

Jul 2, 2010

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 get can't open - no file or directory.

Code: main()
{
char * inputFileName;
char * optarg;
inputFileName = optarg; //doesn't work.

[Code].....

View 2 Replies View Related

Debian Programming :: No Such File Or Directory

Sep 18, 2015

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>

[code]...

View 8 Replies View Related

Programming :: Error: Gtk/gtk.h: No Such File Or Directory

Feb 13, 2011

gcc kk.c : kk.c:1: fatal error: gtk/gtk.h: No such file or directory compilation terminated.

View 1 Replies View Related

Programming :: File/directory Operations In C?

May 5, 2010

How do you do things like list directory contents, mov/copy files, make directoriestc. in C?

View 1 Replies View Related

Programming :: G++ --> Iostream.h: No Such File Or Directory?

Apr 8, 2011

I recently switched to ubuntu, so kinda new to it. I installed g++ by

Code:
sudo apt-get install build-essential
and now when i'm trying to compile this:

[code]....

View 14 Replies View Related

Debian Programming :: No Such File Or Directory But Installed

May 13, 2014

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

[code]...

I don't know what to do to get pass this.

View 14 Replies View Related

Programming :: Check If There Is Any Ejb File Exists In The Directory

May 1, 2011

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.

View 1 Replies View Related

Programming :: Can't Compile C++ - Execvp: No Such File Or Directory

Mar 2, 2011

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

View 4 Replies View Related

Programming :: Error: Sys/timerfd.h: No Such File Or Directory

Mar 8, 2011

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).

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <signal.h>

[Code].....

View 1 Replies View Related

Programming :: Mail On File Increasing In A Directory

Feb 16, 2010

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.

View 3 Replies View Related

Programming :: Perl Script To Look At A Directory For A New File?

Oct 23, 2009

I am new to programming but I am a quick study. I have this script working.

#!/usr/bin/perl
@info=stat("/share/") or die "Can't stat share $!";
while (1) {

[code]...

View 2 Replies View Related

Programming :: QT #include <QGLWidget> No Such File Or Directory

May 30, 2011

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

Quote:

CPLUS_INCLUDE_PATH=/usr/lib/qt/include
MANPATH=/usr/local/man:/usr/man:/usr/lib/java/man:/usr/share/texmf/man
KDE_MULTIHEAD=false
HZ=100

[code].....

View 2 Replies View Related

Programming :: PHP - List Directory - Choose A File - Change Its Name

Mar 16, 2011

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.

View 6 Replies View Related

Programming :: Script That Moves A Specified File Into The Dustbin Directory?

Nov 11, 2010

I've written a vary basic script that moves a specified file into the dustbin directory.The script is as follows:

Code:
#!/bin/bash
#move items to dustbin directory

[code]...

View 4 Replies View Related

Programming :: Shell Script Searching File In A Directory?

Feb 23, 2011

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

/home/user1/public_html/mediawiki/config/movie.mp3
/home/user1/public_html/mediawiki/movie.mp3
/home/user1/public_html/mediawiki/pop.mp3
/home/user2/public_html/index test/pop.mp3
/home/user2/public_html/index test/web.xml
/home/user2/public_html/song.mp3

If I echo the file name from the script Then output is little missed match when a directory name has special char like " "

/home/user1/public_html/mediawiki/config/movie.mp3
/home/user1/public_html/mediawiki/movie.mp3
/home/user1/public_html/mediawiki/pop.mp3

[code]....

I am not sure what is wrong with script or my code .. Does shell have un-controlled behavior of manipulating the output of any command.

View 14 Replies View Related

Hardware :: Fglrx Installation - "Cannot Stat <temporary Installation Directory>/.../libGL*"

May 26, 2011

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.

[Code]....

View 9 Replies View Related

Programming :: Bash Script To Copy Specified Extension File From A Directory?

Mar 12, 2010

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.

View 11 Replies View Related







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