Portion of my script below :
if ; then
NUMBEROFFEILDS=`cat ${BASE_SCRIPT_LOC}/standardfilecleanup.lst|grep -w ${db_file_path}|awk -F: '{print NF}'`
COUNT=4
while ; do
awk_var="$"`echo $COUNT`
file_name1=`cat ${BASE_SCRIPT_LOC}/standardfilecleanup.lst|grep -w... (1 Reply)
Apologies for the trivial nature of this question but I cannot seem to get a simple re direct to a log file to work
Step 1
touch log.txt
at -f batch.sh now >> log.txt
I am trying to get the batch.sh contents into the log file
Manny Thanks (8 Replies)
I am trying to write a script which will output notifications to a logfile, but I would like to cap the logfile to, let's say, 200 lines.
Specifically I am using custom firmware, DD-wrt, on my router and I am implementing a script to connect to my work vpn. I have a loop that pings a computer... (2 Replies)
I'm using cygwin on win7, What I would like to do is something like this:
cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e
I know I can start a new instance using either of these:
mintty -e ...
cygstart tail ...
But neither of those open in ANSI mode, so I can't do... (0 Replies)
I am running tcsh/csh shell on my machine. lately i have realized my stderr file redirection is not working.
Please find the terminal logs as below:
>echo b c >>& log
>cat log
b c
>echo $a b c >>& log
a: Undefined variable.
>cat log
b c
I have never faced such issues, hence not sure... (5 Replies)
Hi, I have downloaded a web page that I need to cleanup before passing to xmlstarlet.
Using UltraEdit's HEX utility part of my download is as follows:
3C 2F 61 3E 0A 09 0A 09 09 3C 2F 61 3E
which in ASCII is
</a>
</a>
I need to locate this string and replace it with just... (7 Replies)
I need to count the number of lines in a .txt file and put it in a variable.
I am using the following code
#!/bin/bash
count = $(wc -l "some file.txt" | awk '{print$1}')
echo $count
It is giving the following error.
line3: count: command not foundWhat am I doing wrong here? :confused: (7 Replies)
I have windows XP machine.
Today i have tried to install Cygwin, I've downloaded all the packages then ran the setup. It's showed completed.
But when i try to open this it's not working.
Do i need to do anything extra for this..?
Please help... (3 Replies)
hey,
I need your help.
I have a rhel server that runs application, that application writing to her local application log.
I want that log will be realtime copying to a another remote rhel server.
The thing is that I prohibited touch the application code.
Is that possible?
... (5 Replies)
I'm having a strange problem with basic >& output redirection to a simple log file in csh. When I run this particular output redirection on the command line, it works, but then when I run the same output redirection command >& in my c shell script, I get a blank log file. Nothing is output to the... (5 Replies)
Discussion started by: silencio
5 Replies
LEARN ABOUT HPUX
svcdumplog
svcdumplog(1m)svcdumplog(1m)NAME
svcdumplog - Prints contents of a binary serviceability log file
SYNOPSIS
svcdumplog [-s num_of_entries] logfile
OPTIONS
The -s flag tells svcdumplog to skip the first num_of_entries log entries before printing, where num_of_entries is a number.
DESCRIPTION
The svcdumplog program will print the contents of a binary log file.
DCE components log important information about their activities and state via the DCE serviceability interface. The log messages can be
routed as desired via the dcecp log object. The messages can also be written in either binary or in text format (information about specify-
ing message format can be found in svcroute(5)). When binary format has been specified for a component's messages, each log entry will be
written as a binary record of data defined (in dce/svclog.h) as the contents of the serviceability prolog structure. The svcdumplog utility
will print the contents of such a binary log file as readable text.
RELATED INFORMATION dce_svc_log_get(3), dce_svc_log_close(3), dce_svc_log_open(3), dce_svc_log_rewind(3), svcroute(5), log(1m)
Books: OSF DCE Porting and Testing Guide, OSF DCE Application Development Guide
svcdumplog(1m)