05-21-2010
Yes. Don't do it
Write to another file, and copy the new file over the old one if you have to.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi everybody,
when i run and compile this:
printf("test"); fflush(stdout);
nothing appears on screen.
if i try this:
___________________________________
printf("test"); fflush(stdout); sleep(10);
___________________________________
then i can see the output "test"... for 10... (4 Replies)
Discussion started by: brain_processin
4 Replies
2. IP Networking
I'm sittig behind a firewall that doesn't allow ftp. I have a conection to a UNIX system, connecting throug SSH. Is it possible to redirect the ftp through the UNIX to my computer? (1 Reply)
Discussion started by: <Therapy>
1 Replies
3. Shell Programming and Scripting
Hi,
I need some help to achive the follwoing task:
I have a file named test that contain the following line:
'Hellow world','good morning'
I want to attach the content of this file to a variable named var , and then rediarect it to a second file bamed test_new.
The result should look like... (2 Replies)
Discussion started by: yoavbe
2 Replies
4. Programming
Hello guys,
Is it possible to redirect browser to another socket address?
Cheers,
Elton (1 Reply)
Discussion started by: EltonSky
1 Replies
5. UNIX for Dummies Questions & Answers
i have following statement in the script
echo -e "$str_XML_col_name:$str_field_type;" >> $i_DC_Key_$i_Tgt_DC_key_Schema
here $i_DC_Key is DC key and $i_Tgt_DC_key are the variables...............
when i ran the script i am getting error rec_merge.sh: $i_DC_Key_$i_Tgt_DC_key_Schema:... (1 Reply)
Discussion started by: mahabunta
1 Replies
6. UNIX for Dummies Questions & Answers
how do you redirect stdout into a variable. whenever I try I get an ambiguous redirect error :( I am trying to validate some user input and failing miserably.
cal $MONTH $YEAR | grep -c "$DAY"
if the above is 1 then it is valid if 0 then not valid. I have been trying to redirect the output... (2 Replies)
Discussion started by: MrAd
2 Replies
7. Shell Programming and Scripting
Hello experts,
I'm testing a program that prints error message to the screen.
I want to redirect the output to a file using >. but the message only prints on screen and not writing to the file,
Any suggestion on what I might try? (3 Replies)
Discussion started by: minifish
3 Replies
8. Programming
Hi all,
I am new to linux and got problem with pthread_mutex_trylock(). I have used mutex in my code. When I try to call pthread_mutex_trylock() on RECURSIVE type of mutex it overwrites adjacent memory location (that is global variable of type structure say x, memory allocated using malloc()). ... (5 Replies)
Discussion started by: liveshell
5 Replies
9. Windows & DOS: Issues & Discussions
I use sugarsync to sync my vimrc across computers. I keep the _vimrc file in a syncing folder and in my home folder, I have a symbolic link ~\_vimrc pointing to ~\Synced Docs\_vimrc. On my mac I have a .vimrc symbolic link pointing at the _vimrc file. On the pc side, every time I open the _vimrc... (3 Replies)
Discussion started by: dp88
3 Replies
10. UNIX for Dummies Questions & Answers
Hi
I have a working sendmail setup for my domain, but would like to run a subdomain on another machine. I could try below, but its a production server and worry about messing it up. Hence the question.
So I have machine names:
mydomain.com (mail server)
dev.mydomain.com
currently the... (1 Reply)
Discussion started by: gtrava01
1 Replies
LEARN ABOUT DEBIAN
ecattominc
ecattominc(1) ecattominc(1)
NAME
ecattominc - convert an ecat format file (version 6.x or 7.x) to a minc format file
SYNOPSIS
ecattominc [<options>] <infile> <outfile.mnc>
ecattominc [-help]
DESCRIPTION
ecattominc will convert an ecat data file (version 6.x or 7.x) to a minc file format Unless the -small_header option is specified, ecattom-
inc will conserve the maximum informations from the ecat header and subheader fields which will be respectively stored as attributes of the
ecat-main and ecat-subhdr minc variables. By default the whole 3D or 4D volume is converted, however, ecattominc allows for the selection
of slice and frame ranges to be copied. The voxel values of the generated minc file are decay corrected, unless the nodecay_correct flag
is specified. Finally, blood data file can be inserted within the minc file with the -bloodfile option.
OPTIONS
Note that options can be specified in abbreviated form (as long as they are unique) and can be given anywhere on the command line.
General options
-byte: Write out data as bytes (default).
-short: Write out data as short integers.
-clobber: Overwrite existing file.
-noclobber: Don't overwrite existing file (default).
-verbose: List files as they are converted (default)
-quiet: Do not list files as they are converted.
Command specific options
-decay_correct: Do decay correction on images (default).
-nodecay_correct: Don't do decay correction.
-slices:Range of slices to copy (counting from 0).
Default value: -2147483648 -2147483648
-frames: Range of frames to copy (counting from 0).
Default value: -2147483648 -2147483648
-frame: Single frame to copy (counting from 0).
Default value: -2147483648
-small_header: Copy only basic header information.
-all_header: Copy all header information (default).
-bloodfile: Insert blood data from this file.
Generic options for all commands
-help: Print summary of command-line options and abort
KNOWN BUGS
No bug listed so far :=)
SEE ALSO
minctoecat(1), rawtominc(1), minctoraw(1), dicomtominc(1)
AUTHOR
Peter Neelin and Anthonin Reilhac (anthonin.reilhac@cermep.fr)
COPYRIGHTS
Copyrights 2005 by Peter Neelin
ecattominc(1)