08-13-2009
Log file
Hi All,
I am new to Linux OS. I am trying to run a batch programs, so i using Shell script to run the batch files. And the binaries which i am running dumps log data to command prompt.I am trying to store this in log file ">log.txt". I have posted below my shell script code
************************************************** ********
#!/bin/sh
PATH=/bin:/prj/bin
/prj/bin/RunLibTestStatic -pf tiff.cfg -lqp 0 30 -lqp 1 32 >> out_qp30.txt
echo "Done."
************************************************** ********
This will create a file " OUT_QP~1.txt " instead of "out_qp30.txt"
please let me know how to correct this problem.
Thanks
fido
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have go this alert_oss.log that is basically capturing all the oracle errorlogs.Now the problem is that it is one huge file and to see log of some particular date i tried
cat alert_oss.log | grep 'Mar 25 10:44:45 2007' > alert_25.txt
is not giving me the required output.
pls suggest
... (3 Replies)
Discussion started by: Assassin
3 Replies
2. Shell Programming and Scripting
Hi Experts,
i am new in shell programming. i am having some problem of checking the log file age and rename it.
for example:
when i run the shell script, the script will check how old is the log file, if the log is already 10 days old(variable). then the log file will rename.
hope to... (3 Replies)
Discussion started by: ewawong
3 Replies
3. Shell Programming and Scripting
Hi all,
I have about 15 directories all with exactly the same structure. I have a file in each of them called log.txt. This file sits in /home/ftp/*usernamehere*/ftptransfer/log/
Username here is the only change in each of the 15 directories.
I want to create a SIMPLE shell script that... (5 Replies)
Discussion started by: mokachoka
5 Replies
4. Shell Programming and Scripting
If a log file is in the following format
28-Jul-10 ::: Log message
28-Jul-10 ::: Log message
29-Jul-10 ::: Log message
30-Jul-10 ::: Log message
31-Jul-10 ::: Log message
31-Jul-10 ::: Log message
1-Aug-10 ::: Log message
1-Aug-10 ::: Log message
2-Aug-10 ::: Log message
2-Aug-10 :::... (3 Replies)
Discussion started by: vikram3.r
3 Replies
5. Shell Programming and Scripting
Hi
I have a requirement to write a script to capture all errors in a Logfile and send the file in email.
If there is any error occurred the subject of email will be ERROR , If there are no error occurred the subject of email will be SUCCESS.
So I created a Log file and put the Appropriate... (2 Replies)
Discussion started by: dgmm
2 Replies
6. Shell Programming and Scripting
I've been finding myself using a log file colorizer written in perl to reformat and colorize the output from many different programs. Mainly, however, I use it to make the output from "tail -f" commands more readable.
The base perl script I use is based on "colorlogs.pl" available from the... (1 Reply)
Discussion started by: rcsteiner
1 Replies
7. BSD
Hi,
in the log file there is line when the ticket is issued but when an user destroys the ticket there is no record.
Does someone have an idea? (0 Replies)
Discussion started by: gaspar
0 Replies
8. HP-UX
AM in need of some plugin/script that can monitor HP-UX file "/var/opt/resmon/log/event.log" .
Have written a scrip in sh shell that is working fine for syslog.log and mail.log as having standard format, have interrogated that to Nagios and is working as I required .
But same script failed to... (3 Replies)
Discussion started by: Shirishlnx
3 Replies
9. Shell Programming and Scripting
How to check log size every 10min. by script (can use crontab)
if log size not change with alert "Log not update"
Base run on SunOS 5.8 Generic_Virtual sun4u sparc SUNW,SPARC-Enterprise
logFiles="log1.log log2.log"
logLocation="/usr/home/test/log/"
Out put.
Tue Jan 31... (3 Replies)
Discussion started by: ooilinlove
3 Replies
10. Web Development
Apache Web Server:
how to log http 404 error to a separate log file and i do not want to log in access.log
please advice. (2 Replies)
Discussion started by: raghur77
2 Replies
DKOPP(1) Dkopp man page DKOPP(1)
NAME
Dkopp - copy files to DVD or BD (Blue-ray) media
SYNOPSIS
dkopp [ -job | -run ] jobfile
dkopp [ -nogui ] -script scriptfile
DESCRIPTION
Dkopp copies files to backup DVD or BD media. It supports full
or incremental backups and full or incremental media verification.
OVERVIEW
Dkopp is a menu-driven GUI (GTK) program operating in its own window.
Dkopp copies files and directories specified in a job file to DVD or
BD media. Dkopp can copy all files to empty media (full copy), or
only new and modified files to previously used media (incremental).
Files and directories to include or exclude can be selected from the
file system hierarchy using a GUI navigator. Specifications are saved
in a job file which can be re-edited and re-used. Script files can
be run in batch mode using the -nogui option. Dkopp can be used to
select and restore files previously copied, and owner and permission
data is also restored. The DVD/BD media can also be accessed with
file system tools like Nautilus.
Dkopp supports the following functionalities:
- Three backup modes: full, incremental, accumulate.
- Three media verification modes: full, incremental, thorough.
- Use write-once or re-writable DVD or BD media (but not CD).
- Report disk:backup differences in detail or summary form.
- Select and restore files from a backup copy (or use drag and drop).
- Search log files to find media where specified files are saved.
OPTIONS
Command line options:
[ -job ] jobfile open job file for editing
-run jobfile execute a job file
[ -nogui ] -script scriptfile execute a script file
SEE ALSO
The online user manual is available using the menu Help > contents.
This manual explains Dkopp operation in great detail.
Dkopp uses the batch programs grwoisofs and genisoimage.
Dkopp is essentially a GUI front-end for these programs.
AUTHORS
Written by Mike Cornelison <kornelix2@googlemail.com>
Linux 2010-10-01 DKOPP(1)