Sponsored Content
Full Discussion: 'cp' and slack space
Special Forums Hardware Filesystems, Disks and Memory 'cp' and slack space Post 302117845 by viRaven on Wednesday 16th of May 2007 05:22:06 PM
Old 05-16-2007
'cp' and slack space

Does the 'cp' command copy the slack space of the copied file to the new location(e.g. CDROM, TAPE)?

I've read that slack space is only copied in a bitstream copy/backup. Is the 'cp' utility a bitstream copy?
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

wake up user space thread from kernel space ISR

Hello, I'm searching for a proper way to let the kernel space ISR(implemented in a kernel module) wake up a user space thread on a hardware interrupt. Except for sending a real-time signal, is it possible to use a semaphore? I've searched it on google, but it seems impossible to share a... (0 Replies)
Discussion started by: aaronwong
0 Replies

2. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

Good afternoon! Im new at scripting and Im trying to write a script to calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies

3. Solaris

No space left on device but free space and inodes are available...

hi guys, me again ;) i recently opened a thread about physical to zone migration. My zone is mounted over a "bigger" LUN (500GB) and step is now to move the old files, from the physical server, to my zone. We are talking about 22mio of files. i used rsync to do that and every time at... (8 Replies)
Discussion started by: beta17
8 Replies

4. Slackware

Firefox 8 install on slack 13.37

Slackware 13.37 stores Firefox 4 in different directories than is suggested for Mozilla says to use for Firefox 8.0 (/opt/firefox). Which should I use? If I use /opt/... how do I remove the old 4.0? Will this screw up the icons and will I need to reset them? How? (4 Replies)
Discussion started by: slak0
4 Replies

5. Fedora

Need to incrwase PHYSICAL VOLUME space on hard drive with free space on it

Hi, I run Fedora 17. I created a physical volume of 30GB on a disk with 60GB of space so there is 30GB of free space. On the physical volume, I created my volume group and logical volumes. I assigned all the space in the physical volume to my volume group. I need to add the 30GB of free space... (1 Reply)
Discussion started by: mojoman
1 Replies

6. UNIX for Dummies Questions & Answers

Changing only the first space to a tab in a space delimited text file

Hi, I have a space delimited text file but I only want to change the first space to a tab and keep the rest of the spaces intact. How do I go about doing that? Thanks! (3 Replies)
Discussion started by: evelibertine
3 Replies

7. UNIX for Advanced & Expert Users

Need to remove leading space from awk statement space from calculation

I created a awk state to calculate the number of success however when the query runs it has a leading zero. Any ideas on how to remove the leading zero from the calculation? Here is my query: cat myfile.log | grep | awk '{print $2,$3,$7,$11,$15,$19,$23,$27,$31,$35($19/$15*100)}' 02:00:00... (1 Reply)
Discussion started by: bizomb
1 Replies

8. Shell Programming and Scripting

Gawk --- produce the output in pattern space instead of END space

hi, I'm trying to calculate IP addresses and their respective calls to our apache Server. The standard format of the input is HOST IP DATE/TIME - - "GET/POST reuest" "User Agent" HOST IP DATE/TIME - - "GET/POST reuest" "User Agent" HOST IP DATE/TIME - - "GET/POST reuest" "User Agent" HOST... (2 Replies)
Discussion started by: busyboy
2 Replies

9. Shell Programming and Scripting

Slack message multi line from UNIX script

Hi OS: Redhat Version 7.5 Enterprise Trying to post message from shell script to Slack channel and trying below code: text="$msg" text1="$lmsg" if ] then echo "No text specified" exit 1 fi escapedText=$(echo $text | $text1 | sed 's/"/\"/g' | sed "s/'/\'/g" )... (13 Replies)
Discussion started by: onenessboy
13 Replies
Decoder(3pm)						User Contributed Perl Documentation					      Decoder(3pm)

NAME
Ogg::Vorbis::Decoder - An object-oriented Ogg Vorbis to decoder SYNOPSIS
use Ogg::Vorbis::Decoder; my $decoder = Ogg::Vorbis::Decoder->open("song.ogg"); my $buffer; while ((my $len = $decoder->read($buffer) > 0) { # do something with the PCM stream } OR open OGG, "song.ogg" or die $!; my $decoder = Ogg::Vorbis::Decoder->open(*OGG); OR # can also be IO::Socket or any other IO::Handle subclass. my $fh = IO::Handle->new("song.ogg"); my $decoder = Ogg::Vorbis::Decoder->open($fh); DESCRIPTION
This module provides users with Decoder objects for Ogg Vorbis files. One can read data in PCM format from the stream, seek by raw bytes, pcm samples, or time, and gather decoding-specific information not provided by Ogg::Vorbis::Header. Currently, we provide no support for the callback mechanism provided by the Vorbisfile API; this may be included in future releases. CONSTRUCTOR
"open ($filename)" Opens an Ogg Vorbis file for decoding. It opens a handle to the file or uses an existing handle and initializes all of the internal vorbis decoding structures. Note that the object will maintain open file descriptors until the object is collected by the garbage handler. Returns "undef" on failure. INSTANCE METHODS
"read ($buffer, [$size, $word, $signed])" Reads PCM data from the Vorbis stream into $buffer. Returns the number of bytes read, 0 when it reaches the end of the stream, or a value less than 0 on error. The optional parameters include (with corresponding default values): "size = 4096" "word = 2" "signed = 1" Consult the Vorbisfile API (http://www.xiph.org/ogg/vorbis/doc/vorbisfile/reference.html) for an explanation of the various values. "sysread ($buffer, [$size, $word, $signed])" An alias for "read" "raw_seek ($pos)" Seeks through the compressed bitstream to the offset specified by $pos in raw bytes. Returns 0 on success. "pcm_seek ($pos, [$page])" Seeks through the bitstream to the offset specified by $pos in pcm samples. The optional $page parameter is a boolean flag that, if set to true, will cause the method to seek to the closest full page preceding the specified location. Returns 0 on success. "time_seek ($pos, [$page])" Seeks through the bitstream to the offset specified by $pos in seconds. The optional $page parameter is a boolean flag that, if set to true, will cause the method to seek to the closest full page preceding the specified location. Returns 0 on success. "current_bitstream ()" Returns the current logical bitstream of the decoder. This matches the bitstream paramer optionally passed to "read". Useful for saving a bitstream to jump to later or to pass to various information methods. "bitrate ([$stream])" Returns the average bitrate for the specified logical bitstream. If $stream is left out or set to -1, the average bitrate for the entire stream will be reported. "bitrate_instant ()" Returns the most recent bitrate read from the file. Returns 0 if no read has been performed or bitrate has not changed. "streams ()" Returns the number of logical bitstreams in the file. "seekable ()" Returns non-zero value if file is seekable, 0 if not. "serialnumber ([$stream])" Returns the serial number of the specified logical bitstream, or that of the current bitstream if $stream is left out or set to -1. "raw_total ([$stream])" Returns the total number of bytes in the physical bitstream or the specified logical bitstream. "pcm_total ([$stream])" Returns the total number of pcm samples in the physical bitstream or the specified logical bitstream. "time_total ([$stream])" Returns the total number of seconds in the physical bitstream or the specified logical bitstream. "raw_tell ()" Returns the current offset in bytes. "pcm_tell ()" Returns the current offset in pcm samples. "time_tell ()" Returns the current offset in seconds. REQUIRES
libogg, libvorbis, libogg-dev, libvorbis-dev CURRENT AUTHOR
Dan Sully <daniel@cpan.org> AUTHOR EMERITUS
Dan Pemstein <dan@lcws.org> COPYRIGHT
Copyright (c) 2004-2010, Dan Sully. All Rights Reserved. Copyright (c) 2003, Dan Pemstein. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. A copy of this license is included with this module (LICENSE.GPL). SEE ALSO
Ogg::Vorbis::Header perl v5.14.2 2010-12-24 Decoder(3pm)
All times are GMT -4. The time now is 10:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy