03-31-2009
Interesting!
I obtained file status flags of STDIN_FILENO, and it is open for O_RDWR.
Why then .\a.out < file.txt doesn't write "arghh!" to file.txt?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I 'm using RH 7.2 Genome in the Network Configuration I change therer are two places one for static hostname for my machine and in DNS hostname I don't know what happen when restarting my PC when connecting using dialer I can't browse the Internet also I can't use sendmail .......Server timeout... (2 Replies)
Discussion started by: atiato
2 Replies
2. Programming
The #1 Online Store for Louis Vuitton Replicas is: http://www.opichina.com.cn.
We offer Louis Vuitton Replicas and more! Whatever you call it: LV Bags, LV Replicas, Louis Vuitton Fake, Louis Vuitton Knockoffs, Louis Vuitton Bag, Louis Vuitton Purse, Louis Vuitton Wallet, Louis Vuitton Shoes,... (10 Replies)
Discussion started by: jiangyanna
10 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Could someone please tell me what would happen if the following were entered into the command line:
rm -i /books/*.*
rm /books/*
Many thanks! (3 Replies)
Discussion started by: crispy
3 Replies
4. UNIX for Advanced & Expert Users
I have an unix id (AIX system) which is used to run a couple of processes. They also write some log files into a file system (that is not in the home directory of the user id, but in different location).
One bad day, the id was deleted accidentally. But the home directory, files and everything... (1 Reply)
Discussion started by: cmgreat
1 Replies
5. UNIX for Dummies Questions & Answers
hi frndz
I wanna knw exatly what happen when we create new user...
which directories are created ??
which files are modified ??
thanx.... (2 Replies)
Discussion started by: luckypower
2 Replies
6. AIX
How does ITIL process is implemened in AIX? (6 Replies)
Discussion started by: AIXlearner
6 Replies
7. UNIX for Dummies Questions & Answers
I'm talking about boot process in multi-boot Linux perceptive.
Please tell me whether my explanation is right or wrong? If wrong, please explain.
"The BIOS checks the system and loads this initial bootstrapping code into
memory. This initial bootstrap code searches for an active partition... (0 Replies)
Discussion started by: f.ben.isaac
0 Replies
8. UNIX for Advanced & Expert Users
Hello,
Who actually wrote Professional Linux Programming of Wrox publication as there are two different sets of writers, one set consists of Jon Masters and Richard Blum and another set of writers is Neil Mathew with lots of other writers. Plz resolve it. I'm really confused.
Regards.. (0 Replies)
Discussion started by: vectrum
0 Replies
9. Shell Programming and Scripting
Hi everyone. Silly might be silly be I'm still new to bash. I'm trying to make an Alarm Clock for in the morning using my laptop i have wrote this Simple Script but i cant work out how to play it at a certain time.
#!/bin/bash
cd /home/josh/Music/Bruno_Mars/Hooligans/
cvlc... (8 Replies)
Discussion started by: jtsmith90
8 Replies
10. What is on Your Mind?
Well I wrote this in 2005 and uploaded to AMINET.as a commemoration of a machine that is still in use today.
It is now 29 years since this machne came into being. Phenominal and it is still being supported- WOW!
My A1200 is on 24/7 and I use it to test code developed on AMIGA emulators...
... (0 Replies)
Discussion started by: wisecracker
0 Replies
h5jam(1) General Commands Manual h5jam(1)
NAME
h5jam - Add a user block to a HDF5 file
SYNOPSIS
h5jam -u user_block -i in_file.h5 [-o out_file.h5] [--clobber]
DESCRIPTION
h5jam concatenates a user_block file and an HDF5 file to create an HDF5 file with a user block. The user block can be either binary or
text. The output file is padded so that the HDF5 header begins on byte 512, 1024, etc.. (See the HDF5 File Format.)
If out_file.h5 is given, a new file is created with the user_block followed by the contents of in_file.h5. In this case, infile.h5 is
unchanged.
If out_file.h5 is not specified, the user_block is added to in_file.h5.
If in_file.h5 already has a user block, the contents of user_block will be added to the end of the existing user block, and the file
shifted to the next boundary. If --clobber is set, any existing user block will be overwritten.
EXAMPLE USAGE
Create new file, newfile.h5, with the text in file mytext.txt as the user block for the HDF5 file file.h5.
h5jam -u mytext.txt -i file.h5 -o newfile.h5
Add text in file mytext.txt to front of HDF5 dataset, file.h5.
h5jam -u mytext.txt -i file.h5
Overwrite the user block (if any) in file.h5 with the contents of mytext.txt.
h5jam -u mytext.txt -i file.h5 --clobber
RETURN VALUE
h5jam returns the size of the output file, or -1 if an error occurs.
CAVEATS
This tool copies all the data (sequentially) in the file(s) to new offsets. For a large file, this copy will take a long time.
The most efficient way to create a user block is to create the file with a user block (see H5Pset_user_block), and write the user block
data into that space from a program.
The user block is completely opaque to the HDF5 library and to the h5jam and h5unjam tools. The user block is simply read or written as a
string of bytes, which could be text or any kind of binary data. It is up to the user to know what the contents of the user block means
and how to process it.
When the user block is extracted, all the data is written to the output, including any padding or unwritten data.
This tool moves the HDF5 file through byte copies, i.e., it does not read or interpret the HDF5 objects.
SEE ALSO
h5dump(1), h5ls(1), h5diff(1), h5import(1), gif2h5(1), h52gif(1), h5perf(1), h5unjam(1).
h5jam(1)