Software :: Unexpected Output From Stat --format %h?
Mar 6, 2010stat is (generously) giving twice the expected output:
Code:
c@CW8:/tmp$ touch foo
[code]...
stat is (generously) giving twice the expected output:
Code:
c@CW8:/tmp$ touch foo
[code]...
I'm still trying to find out if my coby mp3 player will actually play mtv video files as is advertised.
ffmpeg -formats does list mtv but the only command I really ever used was one to convert a vid to an mp3 so I tried Code: ffmpeg -i test.mp4 -acodec copy output.mtv it returns Code: Unable to find a suitable output format for 'output.mtv' I can't find any mtv files online for purchase or free for that matter, so I know this is all pretty obscure but shouldn't there be a way to convert them since ffmpeg lists mtv format?
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.
This is what I get when following the instructions to fix grub. I type in "grub-install /dev/sda" and that's the error I get.I'm trying to put Ubuntu or Mint on a Dell Mini 9 with 16gb ssd, but no matter what I do I cannot achieve this goal
View 4 Replies View Relatedwhile doing socket/network programming, i am getting SSH-2.0-openssh4.7 error, instead of showing day time of server.general description i have Linux Box, with the help of putty i am connecting from windows system to Linux box,no problem in loging,after typing program, i am running the program with gcc. when typing ./a.out, it is showing SSH-2.0-openssh4.7, actually it should display daytime from linux box in both tcp and udp.
View 1 Replies View Relatedwhen iam opening my dec_backup folder the folling error is appering :
the error is gzip :stdin:input /output error
/bin /gstar :unexpected EOF in archive
/bin /gstar: error is not recoverable :exesting now
I'm flooded with online information and am looking for some concise advice For all of you who are familiar with Avidemux: The program offers an abundance of video output formats (MPEG-2, MPEG-4.AVC, MPEG-4.ASP (lavc), MPEG-4 (xvid), H.263). Which format would you recommend for storing home videos, with regard to (a) being able to view them easily on different PC platforms, and to (b) being able to view them still in n > 5 years from now?
View 9 Replies View RelatedI'm trying to format the output of ls -l code...
View 2 Replies View Relatedi am running ps xo "pid,command" but I can't find my process in the results. I know that the process is running because I run ps ax | grep command-name
View 4 Replies View RelatedI have a script that is in Unix. I wanted to know is there any difference between output of ls command in unix and linux
In Unix
Code:
ls -ltr | awk '{print $9}'
In linux output is something similar to
Code:
drwxrwxrwx 2 vinay vinay 4096 2010-02-04 20:31 test
According to above output nothing will be displayed for
Code:
ls -ltr | awk '{print $9}'
ls -ltr | awk '{print $8}' will give test as ouptut in Linux.
I wanted to check the output format for ls -ltr, Anyone using Unix systems may paste a sample output of the command ls -ltr..
I have a perl script that prints an output to standard output using a for loop .It prints a new line every time ,I would like subsequent outputs to be displayed on the same line , I don't want a new line in standard output .Could anyone help plz
$count = $hrstorun*60/$intmin;
$interval = $intmin*60;
for ($c=0; $c < $count; $c++ )
[code]....
it compares two files using md5... if they are same , a corresponding character is output to a text file .. but the problem is it gets appended by default.. is there any way to output in a normal way because the text is a message and it should be of proper format
here is my script
Code:
#!/bin/bash
g=`tail -1 new.txt|head -n 1`
array=( a b c d e f g h i j k l m n o p q r s t u v w x y z )
for((i=1 ; i <$g+1 ; i++))
[code]....
the message is supposed to be hello , i need to get rid of the endlines somehow..
How can format the date command to output the following format 08-Dec-2010.
View 3 Replies View RelatedopenSUSE 11.3 32bit with repos OSS, NON-OSS and Packman + libdvdcss I installed DVDStyler from Packman and as it seems I can't get it to work. When I create a project for PAL, 4:3 with AC3 and finally click "Burn" and select "just generate" to create files for burning I get:
Code:
DVDStyler v1.8.3
Linux 2.6.34.8-0.2-desktop i686
FFmpeg: libavformat 53.4.0, libavcodec 53.7.0, libavutil 51.9.1
Prepare
Cleaning temporary directory
[Code]...
How to convert Tcpdump output file to a Pcap format? Is there such way?
This is what i mean:
tcpdump -i eth0 >> test.out
Now i want to convert test.out to Pcap so It's readable via Wireshark.
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.
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 RelatedI 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]....
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 RelatedI 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 RelatedI would like to find out what sources created this /proc/stat?
View 2 Replies View RelatedI 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 RelatedI'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?
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]....
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.
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 Relatedim 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 RelatedI see in /var/log/maillog this error and I do this checks:
[Code]....
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.
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]...