I found a copy of "LatencyStatus.csv" file, under /home/cdc_access. I removed the file and tried running the crontab but this time there is no output records in the mail report.
Got the output error
Hi
I have written a shell script(in Solaris) in which following logic is there.....
i=1
while read control
do
key=`echo $control | awk -F$DELIMITOR '{ print $1 }'`
echo "Key Values" ${key}
i=`/usr/bin/expr $i + 1`
done < $CONFPATH/$CONFFILE
when i execute it at prompt it... (4 Replies)
Hi ,
I am trying to execute the following script.
#!/bin/sh
find . -name "common.log.diff"
if ; then
cp common.log common.log.diff
diff common.log common.log.diff > DIFFERENCE.log
cp common.log common.log.diff
grep "ERROR" DIFFERENCE.log
if ; then
echo "1"
else
echo "0"
fi... (5 Replies)
Hi,
I have the below job scheduled in crontab. Can you please tell me at what interval this job is scheduled? Where is the name of the job defined here? I will definitely go through the UNIX documentation a little later, for the time being, please provide me few details on this. Thank you.
... (0 Replies)
I am relatively new to this forum and Unix scripting.
ksh script:
part 1 :will call a PL\SQL program will create 3 CSV file at the unix directory.
part 2 : will sftp the files to the EFT server.
Once the EFT server receives these file , it will transfer them to a shared windows folders.
... (3 Replies)
Hi all,
I'm working to a script with /bin/bash shebang.
The script works perfectly if I run from command line.
The script runs under a non root user and inside the commands are set with sudo command in a such a way they can be run under root, for example (first rows of the script):... (5 Replies)
i have a job scheduled in crontab. The problem is, it is not running automatically as per the time scheduled. But runs when executed manually. What would be the problem? Help me with this please. (6 Replies)
Hi Forum,
Good Day!
I have created an empty html file wtih permissoin 777
created shell script(with permission 777) , code is below.
#=======================start==============
. /data09/oracle/apps_st/appl/D_oraapp095.env
rm -rf /home/mnp/Test_log.txt
echo... (1 Reply)
i have written one script which is working fine when i run it manually but giving error when i schedule it in crontab.
cat SUMMARY.sh
#!/bin/bash
DT1=`date +%Y%m%d`
echo "Off PP TT" >>summary_$DT1.txt
cat ues1.txt_$DT1 >>summary_$DT1.txt
cat ues2.txt_$DT1... (2 Replies)
Discussion started by: scriptor
2 Replies
LEARN ABOUT NETBSD
atf-report
ATF-REPORT(1) BSD General Commands Manual ATF-REPORT(1)NAME
atf-report -- transforms the output of atf-run to different formats
SYNOPSIS
atf-report [-o fmt1:path1 [.. -o fmtN:pathN]]
atf-report -h
DESCRIPTION
atf-report reads the output of atf-run and transforms it to different formats. Some of these are user-friendly and others are machine-
parseable, which opens a wide range of possibilities to analyze the results of a test suite's execution. See Output formats below for more
details on which these formats are.
In the first synopsis form, atf-report reads the output of atf-run through its standard input and, if no -o options are given, prints a user-
friendly report on its standard output using the 'ticker' format. If -o options are provided (more than one are allowed), they specify the
complete list of reports to generate. They are all generated simultaneously, and for obvious reasons, two reports cannot be written to the
same file. Note that the default output is suppressed when -o is provided.
In the second synopsis form, atf-report will print information about all supported options and their purpose.
The following options are available:
-h Shows a short summary of all available options and their purpose.
-o fmt:path Adds a new output format. fmt is one of the formats described later on in Output formats. path specifies where the report
will be written to. Depending on the chosen format, this may refer to a single file or to a directory. For those formats
that write to a single file, specifying a '-' as the path will redirect the report to the standard output.
Output formats
The following output formats are allowed:
csv A machine-parseable Comma-Separated Values (CSV) file. This file contains the results for all test cases and test programs. Test
cases are logged using the following syntax:
tc, duration, test-program, test-case, result[, reason]
The 'result' field for test cases is always one of 'passed', 'skipped' or 'failed'. The last two are always followed by a reason.
Test programs are logged with the following syntax:
tp, duration, test-program, result[, reason]
In this case, the 'result' can be one of: 'passed', which denotes test programs that ran without any failure; 'failed', which
refers to test programs in which one or more test cases failed; or 'bogus', which mentions those test programs that failed to exe-
cute by some reason. The reason field is only available in the last case.
The time required to execute each test case and test program is also provided. You should not rely on the order of the entries in
the resulting output.
ticker A user-friendly report that shows the progress of the test suite's execution as it operates. This type of report should always be
redirected to a virtual terminal, not a file, as it may use control sequences that will make the output unreadable in regular
files.
xml A report contained in a single XML file. Ideal for later processing with xsltproc(1) to generate nice HTML reports.
EXAMPLES
The most simple way of running a test suite is to pipe the output of atf-run through atf-report without any additional flags. This will use
the default output format, which is suitable to most users:
atf-run | atf-report
In some situations, it may be interesting to get a machine-parseable file aside from the standard report. This can be done as follows:
atf-run | atf-report -o csv:testsuite.csv -o ticker:-
Or if the standard report is not desired, thus achieving completely silent operation: atf-run | atf-report -o csv:testsuite.csv
SEE ALSO atf-run(1), atf(7)BSD December 16, 2011 BSD