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
mincextract
MINCEXTRACT(1) MINC User's Guide MINCEXTRACT(1)
NAME
mincextract - dump a hyperslab of MINC file data
SYNOPSIS
mincextract [options] mincfile
DESCRIPTION
mincextract dumps a chunk of MINC file data to standard output in the format of your choice.
OPTIONS
-ascii Write out data as ascii strings (default)
-byte Write out data as 8-bit integers
-short Write out data as 16-bit integers
-int Write out data as 32-bit integers
-long Superseded by -int
-float Write out data as single precision floating-point values
-double
Write out data as double precision floating-point values
-filetype
Write out data in the type of the file
-signed
Write out signed data (applies only to integer types)
-unsigned
Write out unsigned data (applies only to integer types)
-range low high
Specify the range of output values
-normalize
Normalize integer pixel values to file max and min (Default)
-nonormalize
Turn off pixel normalization
-image_range low high
Specify the range of real image values for normalization
-image_minimum min
Specify the minimum real image value for normalization
-image_maximum max
Specify the maximum real image value for normalization
-start indexvector
Specifies corner of hyperslab (C conventions for indices). Indices are either separated by spaces (enclosed by quotes) or commas
(no quotes required).
-count indexvector
Specifies edge lengths of hyperslab to read. Indices are either separated by spaces (enclosed by quotes) or commas (no quotes
required).
-positive_direction
Flip images to always have positive direction.
-negative_direction
Flip images to always have negative direction.
-any_direction
Do not flip images (Default).
+xdirection
Flip images to give positive xspace:step value (left-to-right).
-xdirection
Flip images to give negative xspace:step value (right-to-left).
-xanydirection
Don't flip images along x-axis (default).
+ydirection
Flip images to give positive yspace:step value (post-to-ant).
-ydirection
Flip images to give negative yspace:step value (ant-to-post).
-yanydirection
Don't flip images along y-axis (default).
+zdirection
Flip images to give positive zspace:step value (inf-to-sup).
-zdirection
Flip images to give negative zspace:step value (sup-to-inf).
-zanydirection
Don't flip images along z-axis (default).
-help Print summary of command-line options and exit.
-version
Print the program's version number and exit.
AUTHOR
Peter Neelin
COPYRIGHTS
Copyright (C) 1993 by Peter Neelin
SEE ALSO
minctoraw(1)
$Date: 2004-05-20 21:52:08 $ MINCEXTRACT(1)