Hi, i found myself the way the pass a script like a parameter
./scripts.sh "/home/ddd/scriptparam.sh"
#!/bin/ksh
config=$1
$config
thank
> -----Message d'origine-----
> De : D'Apice, Dominic
> Envoyé : 6 mai, 2002 12:31
> À : Netview - List (E-mail)
> Objet : script parameter
>
> hello all aix 4.33 nv 7.1, i would like to give a script to be execute to
> another scripts like this :
>
> ./scripts.sh "/home/ddd/config.sh" (where "/home/ddd/config.sh" is the
> first parameter i give to the script, (include also the path,$1))
>
> my main script is :
>
> #!/bin/ksh
> config=$1
> $config (where the scripts should be execute, is this the syntax should
> i use...?)
>
> question: how is the syntax to give a scripts into another script to be
> execute at the exact line i put in the script ?
>
> Thank
> Dominic
> * D.D'Apice@saq.qc.ca
>
>
|