Sponsored Content
Top Forums Shell Programming and Scripting Logging OWB mapping execution in Shell script Post 302096472 by npn on Thursday 16th of November 2006 12:48:17 AM
Old 11-16-2006
Question Logging OWB mapping execution in Shell script

Hi,

I am executing a OWB mapping from a shell script like this

$OWB_SQLPLUS MY_WAREHOUSE plsql MY_MAPPING "," ","

I want to log this mapping execution process into a file.

Please let me know if this will work:
$OWB_SQLPLUS MY_WAREHOUSE plsql MY_MAPPING "," "," >> LOGFIL.log

I will just be using this log file to track all the execution and use it for logging purpose.

If this wont work, please tell me the proper way to do this...

Thanks.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

shell script error logging

Hi, I am writing a shell script (ksh, solaris 5.8). Script is X.sh variables declared: LOGFILE=X.log the script is removing a file: /usr/bin/rm "$DUMP_FILE1".Z >> $LOGFILE If I kick off the script from the command line as follows: ./X.sh > X.con 2<& 1 (1 Reply)
Discussion started by: niamh
1 Replies

2. Shell Programming and Scripting

logging in Shell script

How to I write to a log file all the output that is displaying on the screen? with time stamp. thankx. (3 Replies)
Discussion started by: laila63
3 Replies

3. Shell Programming and Scripting

Have a script running even with the shell logging out

Hi all, I wish to have a script running even if my session is disconnected. I've tried calling another session within it and using sudo to a different user, but it didn't work - as it was expected to do so :rolleyes: I guess I'll have to work with "nohup" command, right ? trying with the... (4 Replies)
Discussion started by: 435 Gavea
4 Replies

4. Shell Programming and Scripting

Logging into oracle or SQL from shell script

Hi, I have a shell script where I log on to sqlplus like this log() { sqlplus -s scott/tiger <<! select count(*) from EMP; ! } log Here I have hardcoded/used the username : scott and password : tiger directly to log on to SQLPLUS. If i have my log in information in my profile file... (2 Replies)
Discussion started by: manirsendhil
2 Replies

5. Shell Programming and Scripting

Shell Script for Logging into the Website

Hi ALL, Is there any way, to login into a website using Shell/Perl command/script? I am struggling on this from quite sometime but with no luck. Can you guys help, please? My sole purpose is to login a website (Which requires Username and Password) and then extract some information from... (3 Replies)
Discussion started by: parshant_bvcoe
3 Replies

6. Shell Programming and Scripting

Perl script logging via Shell script

Hello I wrote a nice Perl script that is intended to find and copy some files when getting a TERM signal. Now I wanted to make a shell script that starts/restarts the Perl script if it crashes/ends because of errors and make a log of all output the Perl Script gives. The problem is that it won't... (1 Reply)
Discussion started by: al0x
1 Replies

7. Emergency UNIX and Linux Support

Perl script logging via Shell script

Hello I wrote a nice Perl script that is intended to find and copy some files when getting a TERM signal. Now I wanted to make a shell script that starts/restarts the Perl script if it crashes/ends because of errors and make a log of all output the Perl Script gives. The problem is that it won't... (11 Replies)
Discussion started by: al0x
11 Replies

8. Shell Programming and Scripting

Executing scipts after logging into a remote host using shell script

Hi All, Sorry if it is a duplicate post. I have not got any reference about this anywhere. I looked at the posts described in SSH - Passing Unix login passwords through shell scripts - Linux / UNIX Forum and it helped me till the point to connect to the host and executing the basic commands.... (3 Replies)
Discussion started by: RSC1985
3 Replies

9. Shell Programming and Scripting

shell script for multiple logging

Hi All, I am preparing a script which executes following things: 1) Logs into 8 cluster one by one. 2) After logging into each cluster,it prints the cluster name & then exit from that cluster. 3) Then it logs to next cluster & peform the same task. Here is what i have written : for... (8 Replies)
Discussion started by: d8011
8 Replies

10. Shell Programming and Scripting

Enable logging from within the shell script

Bash on Oracle Linux 6.3 I have a shell script whose output I want to redict to a log file. So, I can simply redirect the output as shown below. # cat myscript.sh #### I actually want some logging mechanism here which will redirect the output to a log file echo 'hello world' #... (3 Replies)
Discussion started by: John K
3 Replies
nfslogd(1M)															       nfslogd(1M)

NAME
nfslogd - nfs logging daemon SYNOPSIS
DESCRIPTION
The daemon provides operational logging to the HP-UX NFS server. It is the daemon's job to generate the activity log by analyzing RPC operations processed by the NFS server. The log will only be generated for file systems exported with logging enabled. This is specified at file system export time by means of the share_nfs(1M) command. Each record in the log file includes a time stamp, the IP address (or hostname if it can be resolved) of the client system, the file or directory name the operation was performed on, and the type of operation. In the basic format, the operation can either be an input (i) or output (o) operation. The basic format of the NFS server log is compati- ble with the log format generated by the Washington University daemon. The log format can be extended to include directory modification operations, such as and The extended format is not compatible with the Washington University daemon format. See nfslog.conf(4) for details. The NFS server logging mechanism is divided in two phases. The first phase is performed by the NFS kernel module, which records raw RPC requests and their results in work buffers backed by permanent storage. The location of the work buffers is specified in the file. Refer to nfslog.conf(4) for more information. The second phase involves the user-level daemon, which periodically reads the work buffers, interprets the raw RPC information, groups related RPC operations into single transaction records, and generates the output log. The daemon then sleeps waiting for more information to be logged to the work buffers. The amount of time that the daemon sleeps can be configured by modifying the parameter in The work buf- fers are intended for internal consumption of the daemon. NFS operations use file handles as arguments instead of path names. For this reason the daemon needs to maintain a database of file handle to path mappings in order to log the path name associated with an operation instead of the corresponding file handle. A file handle entry is added to the database when a client performs a lookup or other NFS operation that returns a file handle to the client. Once an NFS client obtains a file handle from a server, it can hold on to it for an indefinite time, and later use it as an argument for an NFS operation on the file or directory. The NFS client can use the file handle even after the server reboots. Because the database needs to survive server reboots, it is backed by permanent storage. The location of the database is specified by the parameter in the file. This database is intended for the internal use of the daemon. In order to keep the size of the file handle mapping database manageable, prunes the database periodically. It removes file handle entries that have not been accessed in more than a specified amount of time. The configurable parameter in specifies the interval length between successive runs of the pruning process. A file handle record will be removed if it has not been used since the last time the pruning process was executed. Pruning of the database can effectively be disabled by setting the as high as When pruning is enabled, there is always a risk that a client may have held on to a file handle longer than the and perform an NFS opera- tion on the file handle after the matching record in the mapping database had been removed. In such case, the pathname for the file handle will not be resolved, and the log will include the file handle instead of the pathname. There are various configurable parameters that affect the behavior of the daemon. These parameters are found in and are described below: Sets the file mode for the log files, work buffer files and file handle mapping database. Specifies the minimum size, in bytes, that the buffer file must reach before processing the work information and writing to the log file. The value of must be between 1 and the maximum file size that is supported by the file system where the buffer file resides. Specifies the amount of time, in seconds, the daemon should sleep while waiting for more information to be placed in the buffer file. also determines how often the configuration file will be reread. The value of must be between 1 and The periodically cycles its logs. specifies the maximum number of log files to save. When is reached, the oldest files will be over- written as new log files are created. These files will be saved with a numbered extension, beginning with The oldest file will have the highest numbered extension up to the value configured for The value of must be between 1 and Specifies how often, in hours, the log files are cycled. is used to insure that the log files do not get too large. The value of must be between 1 and Specifies the time interval, in seconds, between updates of the records in the file handle to path mapping tables. Instead of updating the of a record each time that record is accessed, it is only updated if it has aged based on this parameter. The record access time is used by the pruning routine to determine whether the record should be removed from the database. The value of this parameter must be between 1 and Specifies when a database record times out, in hours. If the time that elapsed since the record was last accessed is greater than then the record can be pruned from the database. The default value for is 168 hours (7 days). The value of must be between 1 and EXIT STATUS
The following exit values are returned: Daemon started successfully. Daemon failed to start. FILES
system record of logged file systems NFS server logging configuration file default parameters for AUTHOR
was developed by Sun Microsystems, Inc. SEE ALSO
share_nfs(1M), nfslog.conf(4). nfslogd(1M)
All times are GMT -4. The time now is 01:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy