Page 1 of 1

APT_CONFIG_FILE error

Posted: Sun Jun 24, 2007 10:39 pm
by kd813
I am using this command to pass the APT_CONFIG_FILE parameter using dsjob
$DSPATH/dsjob -param '$APT_CONFIG_FILE=$APT_CONFIG_FILE' $PROJPM $Jobname

When i pass the path istead of $APT_CONFIG_FILE in the command the job runs succseeflle but whn i pass it as paramenter as in the above command its giving me the following error
"main_program: ##$APT_CONFIG_FILE=$APT_CONFIG_FILE does not exist or is not a file or symbolic link to one.
##Fatal Error: Cannot continue without a configuration file."

Posted: Sun Jun 24, 2007 11:18 pm
by keshav0307
so it is lloking for exact value.
not sure if defining $APT_CONFIG_FILE in your user profile will help.

Posted: Sun Jun 24, 2007 11:23 pm
by kd813
no its not.. as i have to change the value of the parameter at the run time
thats why i need to send it as parameter only

Posted: Sun Jun 24, 2007 11:38 pm
by ray.wurlod
Single quote characters (hard quotes) are meaningful to the shell. Among other things, they prevent resolution of environment variable characters and expansion of wildcards. Lose the hard quotes.

Code: Select all

-param $APT_CONFIG_FILE=${APT_CONFIG_FILE}

Posted: Sun Jun 24, 2007 11:48 pm
by kd813
ray.wurlod wrote:Single quote characters (hard quotes) are meaningful to the shell. Among other things, they prevent resolution of environment variable characters and expansion of wildcards. Lose the hard quotes.
[ ...
So shall I replace the single quotes with double quotes or shall I removethem completely?

Posted: Mon Jun 25, 2007 1:21 am
by ThilSe
kd813 wrote:
ray.wurlod wrote:Single quote characters (hard quotes) are meaningful to the shell. Among other things, they prevent resolution of environment variable characters and expansion of wildcards. Lose the hard quotes.
[ ...
So shall I replace the single quotes with double quotes or shall I removethem completely?
You may try using this:
$DSPATH/dsjob -param "\$APT_CONFIG_FILE"="${APT_CONFIG_FILE}" $PROJPM $Jobname

Posted: Mon Jun 25, 2007 5:51 am
by kd813
thanks it worked