Programming :: Sys/stat.h - What Does The Letter "I" Mean

Oct 24, 2010

I find many symbolics and macros in sys/stat.h beginning with 'S_I', like S_IRWXU, S_ISUID, S_ISDIR etc. I can't figure out what the letter 'I' means.

View 6 Replies


ADVERTISEMENT

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 View Related

General :: Echo Enter The Letter A Or The Letter B?

Feb 11, 2010

Not sure why this won't work, any thoughts?echo enter the letter A or the letter B

read letter
if["$letter" = "A"]; then
echo "coolit's an A"

[code]....

View 1 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 :: How To Capitalise First Letter In PHP

Jul 28, 2010

I have a string such as "helLo wOrlD". I'd like to transform this into "Hello World", ie. capitalise the first letter of every word, and transform the rest into small letters, both being compulsory.

View 9 Replies View Related

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

Programming :: Capitalise Only First Letter Of Each Word In A Sentence?

Feb 13, 2009

ive searched around about this for a bit, but have been unable to find a working and suitable solution for me to do, what i require is to be able to change a string such as:hIs Is a TeSt to --> This Is A Test - AND place it in a variable - so far ive only succesfully been able to make the whole sentence uppercase or lowercase.

View 2 Replies View Related

Programming :: Awk - Calculate The Number Of Words Containing Letter E In A Textfile?

Oct 12, 2010

i need to calculate the number of words containing letter e in a textfile.

View 9 Replies View Related

Programming :: Change To Capital First Letter Of Every Word Over Specific Column

May 1, 2010

Trying to change to upper case first letter of every word over a specific column.

View 10 Replies View Related

Programming :: Script That Change The Names Of Files And Folders Into Small Letter?

Oct 2, 2009

i want to make a script that change the names of files and folders into small letter because they are all in capital and more than 1000 fileit is impossible to do that with my hand

View 14 Replies View Related

Programming :: Stat On Cifs - Fails With Error No 75 - Error Shows "Value Too Large For Defined Data Type"

Dec 29, 2010

i have Ubuntu10.10 (kernel-2.6.35-22-generic) installed. struct stat StatBuff;

[Code]...

I have mounted a windows share folder on /mnt. When i gave any directory within /mnt/ to stat function it fails with errorno 75. perror shows "Value too large for defined data type". Example 1 is fail but Example 2 works fine.

View 7 Replies View Related

Fedora :: KDE Doesn't Stat / Sort It?

Nov 23, 2009

Now I have upgraded to FC12, but:KDE doesn't start : kstartconfig4 does not exist or fails. Error code is 127
X-Chat doesn't start and
may be others as well.

View 2 Replies View Related

Slackware :: Sox Package, 13.1, Fails On Sox 1.wav -e Stat?

May 3, 2011

I think there is a problem with the sox package that comes with Slackware 13.1.I would appreciate any advice. I'm using the same file, 1.wav, in both cases. The output of file 1.wav is1.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 HzOn 12.1, I can runsox 1.wav -e stat 2> /tmp/stat.txt

bash-3.1$ cat /tmp/stat.txt
Samples read: 37096920
Length (seconds): 420.600000

[code]....

View 1 Replies View Related

Ubuntu :: Grub Rescue - Error: Cannot Stat: /dev/sda/

Jul 8, 2011

So, I had Ubuntu and Mint on my second hard drive (first drive has 7), and I reinstalled Ubuntu over the entire thing (upgraded from 10.04). Ubuntu now has one drive to itself, while Windows has the other. When I did this, I booted into Grub Rescue. Restarted and switched hard drives, same thing. I loaded the LiveCD and followed this repair guide. I discovered I don't have a Boot.cfg (or .lst) or another file of the three required. I noticed my install did not have any /boot partition, so I reinstalled a few times, all with the same error. Finally, I go back to the LiveCD desktop and run the following: sudo grub-install --boot-directory=/media/[long string]/boot /dev/sda And this is the output: Code: /usr/sbin/grub-probe: error: cannot stat: /dev/sda/ This is on Ubuntu 11.04 with GRUB2 (1.99).

View 9 Replies View Related

General :: CP Cannot Stat Permission Denied (Files Are 644)

Oct 5, 2009

I have some files lying around in /root/bla/, all these files are 644 and /root/bla/ is 755. Still, when I try (as a different user) to cp /root/bla/file ., I get a "cp: cannot stat: Permission denied". I also cannot ls /root/bla/, I also get a Permission denied... what gives?

View 3 Replies View Related

General :: Source Which Created /proc/stat?

Jun 16, 2010

I would like to find out what sources created this /proc/stat?

View 2 Replies View Related

Server :: Stat=Deferred - Connection Refused By - 127.0.0.1

Feb 15, 2010

I am using localhost for only send the email, its send mail outside domain like my gmail or yahoo accunt. but its not send my domain user account. the error comes when i see the logs is: stat=Deferred: Connection refused by [127.0.0.1]

View 3 Replies View Related

Software :: Unexpected Output From Stat --format %h?

Mar 6, 2010

stat is (generously) giving twice the expected output:
Code:
c@CW8:/tmp$ touch foo

[code]...

View 2 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

Ubuntu :: Unable To Stat `./usr/include/asm-generic/mman.h'

May 6, 2010

I have done a completely fresh install of Ubuntu 10.04. As soon as I installed it and checked for updates there were a few, but I got an error for the package linux-libc-dev.

I should make it known that since I got this error about 2 days ago, there have been several more updates issued for other packages, but I still get the same error for this package. Everything else installs fine and currently linux-libc-dev is the only package in my list. When I try to install it via the update manager I get a popup window with the following error message:

Quote:

E: /var/cache/apt/archives/linux-libc-dev_2.6.32-22.33_i386.deb: unable to stat `./usr/include/asm-generic/mman.h' (which I was about to install)

To get more information I also ran it from the terminal:

sudo apt-get update
sudo apt-get upgrade

Quote:

(Reading database ... 147293 files and directories currently installed.)
Preparing to replace linux-libc-dev 2.6.32-21.32 (using .../linux-libc-dev_2.6.32-22.33_i386.deb) ...
Unpacking replacement linux-libc-dev ...

[code]....

This package provides headers from the Linux kernel.These headers are used by the installed headers for GNU glibc and other system libraries. They are NOT meant to be used to build third-party modules for your kernel. Use linux-headers-* packages for that.

View 2 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

General :: Get Free Memory Stat For The Past Few Days?

Jul 5, 2011

im trying to collect some data. Is there a way to get the free memory stats over the past few days from some file... i looked into the sar log files but they dont have date stamps in them!

View 6 Replies View Related

Server :: Sendmail: Stat=Deferred: Connection Reset By [127.0.0.1]

Mar 17, 2010

I see in /var/log/maillog this error and I do this checks:

[Code]....

View 4 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

Ubuntu :: Where Is The Letter Wizard?

Apr 1, 2010

On Karmic-64. I try to click on File, Wizard, Letter; then, nothing happens. This is Open Office 3.1

My software source is: [url]

Maybe I need to add another repository?

I can compose a letter without help, but the wizards help with the format.

View 4 Replies View Related

OpenSUSE Hardware :: Driver Install - Make - Cannot Stat R8101.ko

Nov 30, 2008

I just installed openSUSE 11. The 64-bit laptop has a RealTek RTL8102E NIC, which SUSE misidentified during the install. I found the supposedly correct Linux driver on Realtek's website, but I'm getting a problem when trying to compile the driver and I can't find my problem or the solution in any current threads - so I must be doing something pretty stupid. I followed the directions.

[code]...

View 9 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

Ubuntu :: Installing From 11.04 Live Cd - Unable To Stat The Mount Point

Jul 1, 2011

I've installed Ubuntu 11.04 on a desktop and am trying to install ndiswrapper. I don't have a wired connection to the router, but I have managed to use ndiswrapper successfully on other Linux live distributions which already had them installed (eg, Linux Mint 9). By inserting the Ubuntu 11.04 Live Cd and adding the cdrom in Synaptic's "Settings > Repositories" menu, I can find it in the list of packages, but when I try to install ndiswrapper-utils-1.9 and ndiswrapper-common I get a few error messages. First, a notice pops up saying: "Some of the packages could not be retrieved from the server(s). Do you want to continue, ignoring these packages?". I guessed this is due to lack of an internet connection, so I selected "yes" and got an error box that reads:

"E: Internal Error, No file name for ndiswrapper-utils-1.9 W: Failed to fetch cdrom:[Ubuntu 11.04_Natty Narwhal_-Release i386 (20110427.1)]/pool/main/n/ndiswrapper/ndiswrapper-utils-1.9_1.56+r2729-1_i386.deb
Unable to stat the mount point /media/Ubuntu4011.0440i386/ - stat (2: No such file or directory)"

This system has two hard drives and a cdrom drive. I've error checked the Live cd, and it came up clean. Please, can someone give me a hand getting Ubuntu to mount the cd? PS: I've downloaded the ndiswrapper files from sourceforge onto a thumbstick (version 1.56). Is there a way I can install them from the stick?

View 1 Replies View Related

General :: Stat Command To Print Permission In Octal Format?

Oct 11, 2009

Is it possible to print the permission in octal format for a directory recursively?Code:
stat -c "%a" /etcIt prints the permission for /etc directory only.

View 2 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







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