Sponsored Content
Full Discussion: Please help on this
Top Forums UNIX for Dummies Questions & Answers Please help on this Post 302125870 by era on Sunday 8th of July 2007 03:08:07 PM
Old 07-08-2007
The correct solution however is to rewrite the script to parametrize the, uh, parameter correctly.

#!/bin/sh

param=$1

exp username/password@databasename file=PMGR_AMPD_ $param.dmp statistics=none log=exp_PMGR_AMPD_ $param.log

Then you'd execute that with the required date, i.e. "script 06132007" to run it with param set to 06132007. Or if the parameter can be derived from the date when the script is run or some such then by all means do that automatically, i.e. param=$(date +%d%m%Y)

Last edited by era; 07-08-2007 at 04:08 PM.. Reason: Spurious newline
era
 
DL(3)							     Library Functions Manual							     DL(3)

NAME
DL - generate logging messages in C and C++ using a debugger SYNOPSIS
#include <DL.h> DL(format,...) DLG(guard,format,...) DLH(handler,format,...) DLP(param,format,...) DLGH(guard,handler,format,...) DLHP(handler,param,format,...) DLGHP(guard,handler,param,format,...) DESCRIPTION
The DL macro is used to print logging or debugging messages using a debugger. The nana(1) command generates a set of debugger commands which are then sourced into gdb(1) to implement the logging. If you don't run the executable under gdb(1) then no tracing will occur. The arguments are: format,... - a printf(3) style argument list containing the message guard - print only if the guard is true. handler - the code that does the printing. Default: fprintf param - a parameter to be passed off to the handler. Default: stdout See nana.info for details on configuring the behaviour. SEE ALSO
nana-clg(1), nana(1), nana(3), I(3), DI(3), L(3), DL(3), Q(3) and nana.info. The nana.info file is the primary documentation for this library. AUTHOR
Phil Maker <pjm@gnu.org> DL(3)
All times are GMT -4. The time now is 01:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy