Hi,
Currently I'm working on a lenghty script so I figured it would be useful to create a logfile so that output that is displayed on the users screen is also stored in the log file for later reference...... kinda like the whole point of a log file! Anyway, I was just wondering if there was an... (3 Replies)
I am trying to write a script that will remove any line in 2 given text files
starting with '-'.
the output should be to the second file.
this is what I tried:
#!/bin/csh -f
cat $1 $2 | grep -v '^-' > $2
the problem is the after executing the script, file2 contains only the
lines from... (7 Replies)
I'm redirecting the output of a command to a logfile, however, if the user is on a terminal I would also like the output to be displayed on the screen.
tar tvf some_tarfile >Logfile
if the user is on a term then have the output to the Logfile and also be displayed on the screen at the same... (2 Replies)
Hi there
I have a script that runs but it outputs everything onto the screen instead of a file.
I've tried using the > outputfile.txt however all it does is dump the output to the screen and creates an outputfile.txt but doesn't put anything in that file.
Any help would be appreciated
... (6 Replies)
We have an application here that does some table queries and then prints the result on screen. I do not have the code of this application (which i will just call "queryCommand"), but what it does is that you call it with some parameters and it prints some info about the query and then the... (5 Replies)
Hello i am trying to write a script that will redirect the output to a certain file. Here is the code so far:
#!/bin/bash
ps -e | sort | more > psfile
When I execute the script nothing happens since i assume the output was redirected to the file called psfile. When I try to look at the... (1 Reply)
Hi,
I am using AIX server. I have a korn shell script where in I am redirecting a line to a file in a while loop:
while read line
do
outputline=$line;
echo $outputline >> "./temp/exec_list_"$ETL_JOB_RUN"_temp"
done < ./temp/exec_list_$ETL_JOB_RUN
Sometimes, when the CPU... (2 Replies)
Hi
I am making a script where i want to redirect the output of ls -l to a file
Example
#ls -l fil1.txt > /opt/temp/a.txt
ac: No such file or directory
I want to capture output of this command
like here output is
ac: No such file or directory
can anyone help (4 Replies)
Hi All,
i have below for loop of which i am trying to redirect output in a file:
for i in `/usr/sbin/ifconfig -a | awk '/flags/ {print $1}' | grep -v lo | sed 's/://g'`
do
ifconfig $i dhcp status
done >> /tmp/logfile
but instead the output is appearing as stdout on screen rather than... (12 Replies)
Discussion started by: omkar.jadhav
12 Replies
LEARN ABOUT DEBIAN
fwrite_reading
write_reading(3) Staden Package write_reading(3)NAME
write_reading, fwrite_reading - Write a Read structure into a trace file.
SYNOPSIS
#include <Read.h>
int write_reading(
char *filename,
Read *read,
int format);
int fwrite_reading(
FILE *fp,
Read *read,
int format);
DESCRIPTION
These functions write a Read structure into a trace file. The principle format support is the SCF format. Although reading is supported for
ABI and ALF, writing is not. Additionally, it is possible to write using the plain (old) staden format files or as Experiment files. In
both these cases only the sequence component of the trace file will be written.
When writing as an experiment file the QL, QR and SQ fields are generated from the Read structure. If we previously created the Read struc-
ture from reading an experiment file then the original experiment file data is also written. Otherwise EN, ID, LN and LT lines are also
generated.
write_reading() writes a Read structure to the specified filename in the specified format. Formats available are TT_SCF, TT_PLNand TT_EXP.
Specifying format TT_ANY will be treated as TT_SCF.
fwrite_reading() writes a Read structure to the specified FILE pointer in the specified format. Apart from writing to FILE pointer instead
of a filename, the function is identical to write_reading().
RETURN VALUES
On successful completion, the write_reading() and fwrite_reading() functions return 0. Otherwise these functions return -1.
SEE ALSO read_reading(3), fread_reading(3), deallocate_reading(3), scf(4),
ExperimentFile(4)write_reading(3)