08-26-2002
Exactly, i do not want to store the file into a buffer (for read or write), but write/read it directly from disk to the socket/ from socket to disk.
I got one solution by mapping the file, then i can use the mapped file as the buffer for the read()/write() function.
thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all
I wander of there is small utility that gives me the possibility to download direct links to specific folder
say if i have http://www.blah.com/foo.java and I like to download the foo.java without opening the browser and such... (2 Replies)
Discussion started by: umen
2 Replies
2. Shell Programming and Scripting
Hi,
I have a pipe delimited file with 1 million records. I need to validate each line by counting the number of delimiters, if any line fails to have the specified number of delimiters, taat line has to be sent to a reject file.
Kindly suggest.
if code provided, it is highly appreciated, and... (22 Replies)
Discussion started by: anandapani
22 Replies
3. Shell Programming and Scripting
:wall::wall::wall:
Hi I have horrible script below, need help in renaming ls -l output into new filename format:
Desired output:
cp -pv original_path/.* newDirectory/owner_of_file.%dd%mm%y.file_extension.first_8_characters_of_original_filename
localuser@localuser:~ vi... (3 Replies)
Discussion started by: wolf@=NK
3 Replies
4. Shell Programming and Scripting
Hai Friends,
Please help me in providing unix shell script for pulling data from mainframe dataset to unix using connect direct (NDM).
Thanks in advance (1 Reply)
Discussion started by: karthikm
1 Replies
5. Shell Programming and Scripting
Hi guys,
been scratching round the forums and my mountain of resources.
Maybe I havn't read deep enough
My question is not how sed edits a stream and outputs it to a file, rather something like this below:
I have a .txt with some text in it :rolleyes:
abc:123:xyz
123:abc:987... (7 Replies)
Discussion started by: the0nion
7 Replies
6. Shell Programming and Scripting
I want to list files that end with .c in the direct subdirectory of the current directory. I have tried the following command:
find ./ -mindepth 2 -maxdepth 2 -name "*.c"
Is that right? Or is there any easier way to handle that problem?
Another problem is that I want to grep in a file to find... (5 Replies)
Discussion started by: Ray Sun
5 Replies
7. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
We must do the following for a massive coding project that is due at 12:20PM on Monday, July 22, 2013. We are to... (1 Reply)
Discussion started by: kowit010
1 Replies
8. Solaris
I have problem with oracle solaris 10 running on oracle sparc T4-2 server.
Os information: 5.10 Generic_150400-03 sun4v sparc sun4v
Output from tcpstat.d script
TCP bytes: out outRetrans in inDup inUnorder
6833763 7300 98884 0... (2 Replies)
Discussion started by: insatiable1610
2 Replies
9. UNIX for Advanced & Expert Users
Dear Expert Users,
I know that Unix utility ( fuser ) is used to detect "transmission" of files from Source system to "current Linux Server".
I have scheduled this Unix script to work every 30th minutes of the hour and whenever files transmission starts at that very moment.
And, the file... (4 Replies)
Discussion started by: schandrakar1
4 Replies
10. Shell Programming and Scripting
Hello all,
i have a code in which when doing a for loop, i need to direct the output to two files, one just a single output, the other to always append (historical reasons).
So far i managed to do the following, which is working, but am still considering it as "dirty".
... (4 Replies)
Discussion started by: nms
4 Replies
hdik(8) BSD System Manager's Manual hdik(8)
NAME
hdik -- lightweight tool to attach and mount disk images in-kernel
SYNOPSIS
hdik imagefile [options]
DESCRIPTION
hdik is a lightweight tool that can be used to attach disk images in-kernel (i.e. without a user-land process to provide the backing store).
Only a subset of disk images can be mounted in this manner including read/write disk images, UDIF disk images that use zlib compression,
shadowed disk images, and sparse disk images.
hdik is intended for use in situations where linking against the DiskImages framework is problematic or an extremely lightweight mechanism
for attaching a disk image is needed.
You can specify that the image should not be processed by Disk Arbitration by specifying the -nomount option. You can also specify that the
image be mounted with a shadow file by using the -shadow option.
The following argument must be specified:
imagefile the disk image to be mounted.
OPTIONS
-shadow [shadowfile]
Use a shadow file in conjunction with the data in the image. This option prevents modification of the original image and allows
read-only images to be used as read/write images. When blocks are being read from the image, blocks present in the shadow file
override blocks in the base image. When blocks are being written, the writes will be redirected to the shadow file. If not
specified, -shadow defaults to <imagename>.shadow. If the shadow file does not exist, it is created.
-nomount Suppress automatic mounting of the image or partitions on it. This will result in /dev entries being created, but will not mount
any volumes.
-drivekey keyname=value
Specify a key/value pair for the IOHDIXHDDrive object created (shows up in the IOKit registry of devices which is viewable with
ioreg(8)).
SEE ALSO
hdiutil(1), diskarbitrationd(8), diskutil(8), ioreg(8)
Mac OS X 29 Apr 2003 Mac OS X