11-13-2008
i think you can use fopen() and fprintf() to write to the file, then you use printf() to display...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello everybody,
Is there a more elegant way to make dual output (display on standard output and append to a file) while I'm executing a shell script, besides duplicating the echo command for every string?
echo "Message..." > 1
echo "Message..." >> myfile.out
Thank you for your time,... (2 Replies)
Discussion started by: AdrianM
2 Replies
2. Shell Programming and Scripting
hello hackers.
i have a curl process running as cgi directly pushing stdout to the client. but i want to additionally save that stream to a file at the same time.
any directions madly welcome.
thanks in advance (3 Replies)
Discussion started by: scarfake
3 Replies
3. Shell Programming and Scripting
I am trying to have a script ping all the clients then output it to a file so I know which clients are off then have the next script pull the ones that are online and reboot them.
This is what I am running with right now. If there is something KISS then by all means please let me know.
... (3 Replies)
Discussion started by: deaconf19
3 Replies
4. Shell Programming and Scripting
hi
i m trying to print the permissions for a file in output
echo name
read name
touch name.txt
permission=$((ls -l $name.txt))
echo permission
please suggest where i went wrong? (2 Replies)
Discussion started by: angel12345
2 Replies
5. Shell Programming and Scripting
Using echo command, send output to both places. I think I knew this but forgot. Thanks in advance (2 Replies)
Discussion started by: stevensw
2 Replies
6. Shell Programming and Scripting
Hi All,
I have around 900 Select Sql's which I would like to run in an awk script and print the output of those sql's in an txt file.
Can you anyone pls let me know how do I do it and execute the awk script? Thanks. (4 Replies)
Discussion started by: adept
4 Replies
7. Shell Programming and Scripting
Hello all. I've been lurking here for a year or two and finally decided to post.
I need some assistance with file descriptors, stdout, and redirecting output. I've searched through a number of very helpful threads here (unfortunately I can't link to any of them yet due to my low post count...),... (2 Replies)
Discussion started by: Michael_K
2 Replies
8. Shell Programming and Scripting
Hi Friends,
This is the only solution to my task. So, any help is highly appreciated.
I have a file
cat input1.bed
chr1 100 200 abc
chr1 120 300 def
chr1 145 226 ghi
chr2 567 600 unix
Now, I have another file by name
input2.bed (This file is a binary file not readable by the... (7 Replies)
Discussion started by: jacobs.smith
7 Replies
9. Shell Programming and Scripting
I have a python script that gives output called test.png. By using the following command I run the script every 2 seconds. What is the easiest way to save the output as follows ( test.png (1st output), tes1.png (second output), tes2.png ....)
Command I i use
while sleep 2; do python... (1 Reply)
Discussion started by: quincyjones
1 Replies
10. UNIX for Beginners Questions & Answers
Why does this until false; do history | head -5; done
result in a stdout infinite loop, yet until false; do history | head -5 > hist5; done
only writes it once to file hist5? Furthermore, I can hear the hard drive working on the 2nd command until I end the process, but the history | head -5 is... (1 Reply)
Discussion started by: Xubuntu56
1 Replies
LEARN ABOUT DEBIAN
gpiv_rot180
GPIV_ROT180(1) General Commands Manual GPIV_ROT180(1)
NAME
gpiv_rot180 - Simple data manipulation tool for PIV data.
SYNOPSIS
gpiv_rot180 [-h | --help] [-p | --print] [-p | --version] [filename] < stdin > stdout
DESCRIPTION
gpiv_rot180 rotates the data over 180 degrees. As rotating over 180 degrees is identic to flipping over x as well as over y-direction,
flipx and flipy may be used instead of gpiv_rot180.
The parameters read from the configuration resources (containing the key POST) may be overruled by the command line options, as explained
below.
Options
-h | --help
On-line help.
-p | --print
Prints parameters, command line options and input and output filenames to stdout. The output may be used as parameters of
gpiv_rot180 for future use by re-directing stdout to gpiv_rot180.par.
-v | --version
Print version information on standard output, then exits successfully.
filename
Input PIV file. Overrides stdin and stdout. Output will be written to filename.ma.piv. The parameters will be written or appended to
filename.par.
SEE ALSO
manipiv, flipx, flipy, gpivtools
AUTHOR
Gerber Van der Graaf
8 November 2006 GPIV_ROT180(1)