Sponsored Content
Full Discussion: dd seek problem
Top Forums UNIX for Advanced & Expert Users dd seek problem Post 302230820 by silvermoon on Sunday 31st of August 2008 03:35:36 PM
Old 08-31-2008
Quote:
Originally Posted by era
Can you examine the resulting file? I assume you get the result from the first experiment in the first 281,881 bytes after the second operation, and its contents are 2 x 281,881 bytes (but of course, in the absence of a file system, it's hard to tell). What about when you copy it back, do you get padding on either end of the file, or the wrong number of bytes, or the wrong contents?
When it's copied back, I get the same size file. When I view the contents of the file, it has got the last few hundred bytes of the jpg. The rest of the file is zero's that were placed on the memory stick before the copy operation occurred.

I finally realized that default 550 obs was the issue when combined with skip, whereas seek used 281881.


The program I'm writing is in Python. My goal is to write a file at any location I want on any drive. It's part of an encryption idea, where the encryption decides where to store the file rather than the file management system. That's when I need to seek a number of bytes that isn't the ibs. I'm not sure the dd is going to help me with this. But I can't say that with full confidence, because I don't fully understand how it works yet.
 

3 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Seek UNIX script tutor and help

I am new to UNIX shell script programming. I have coded one korn shell script used on solaris 10 for Oracle database rman cold backup. The first part of script is working. But only following part is not working. Please help me to point out the problem and errors in my code. Thanks a lot. # the... (2 Replies)
Discussion started by: duke0001
2 Replies

2. AIX

server seek internet

hello i'm working with aix 5.3 hacmp 5.4 P550 and P520 those two serevr every 10 seconds seek connection to the internet web. i check with sniffer software and i've got this details. the problem is that when i've problem with the internet those server get frizzzzzzz. on those servers running... (0 Replies)
Discussion started by: ariec
0 Replies

3. UNIX for Dummies Questions & Answers

Seek help configuring Sendmail 8.14.4 Unix

Seek help configuring Sendmail 8.14.4 Unix server. Not sure if this is the correct place to post or the Unix/Linux Forums job board. Seeking help configuring sendmail 8.14.4 on my Unix server. It appears I have an open relay. I was advised I need to modify a etc/mail/dir , a command line entry... (0 Replies)
Discussion started by: raecampus
0 Replies
memchan(n)																memchan(n)

__________________________________________________________________________________________________________________________________________________

NAME
memchan - Create and manipulate memory channels SYNOPSIS
package require Tcl package require memchan memchan ?-initial-size len? _________________________________________________________________ DESCRIPTION
This manpage documents both the overall package and the command memchan. The package itself provides a number of in-memory channels which can utilized to o capture stream-like information in a natural way instead of using set and append to manipulate strings o or to transfer data between interpreters, in the same thread or not. COMMAND
memchan ?-initial-size len? creates a chunk-oriented in-memory channel and returns its handle. If an initial size is specified the system will pre-allocate len bytes of buffer space for the contents. This is no restriction on the ultimate size of the channel, it will always grow as much as is necessary to accomodate the data written into it. The channels created here can be transfered between interpreters in the same thread and between threads, but only as a whole. It is not possible to use them to create a bi- or unidirectional connection between two interpreters. Memory channels created by memchan provide two read-only options which can be queried via the standard fconfigure command. These are -length The value of this option is the number of bytes currently stored in the queried memory channel. -allocated The value of this option is the number of bytes currently allocated by the queried memory channel. This number is at least as big as the value of -length. As the channels generated by memchan grow as necessary they are always writable. This means that a writable fileevent-handler will fire continuously. The channels are also readable if they contain more than zero bytes and the seek location is not and the end of the channel. Under these conditions a readable fileevent-handler will fire continuously. Note that writing to such a channel usually occurs at the end, thus supressing readable events. This also means that users have to take care to seek the channel to a location before the end before trying to read data back. SEE ALSO
fifo, fifo2, null, random, zero KEYWORDS
channel, chunk, i/o, in-memory channel, memchan COPYRIGHT
Copyright (c) 1996-2003 Andreas Kupries <andreas_kupries@users.sourceforge.net> Memory channels 2.2 memchan(n)
All times are GMT -4. The time now is 10:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy