script from aix to linux

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

script from aix to linux

Roshan
Hi Erman,

I have performed a migration from AIX to Linux. I have copied the crontab scripts from aix to Linux.
Can you please check the script below which I execute. I am getting

/archicom/appli/bin/injectionMauritius.sh\t-n <nombre de fichier a traiter en un seul passage>
\t\t-rc <repertoire de chargement> -cd <repertoire de reception des fichiers depuis platine>
/archicom/appli/bin/arch_loadPartitionedObject[33]: : not found [Aucun fichier ou dossier de ce type]
/archicom/appli/bin/loadPartitionedObject.sh: ligne732: Erreur de syntaxe pr▒s du symbole inattendu ▒ { ▒
/archicom/appli/bin/loadPartitionedObject.sh: ligne732: `outfile_name='echo $infile_name | awk -F.      '{ n=$1; if ( NF == 1 ) { if ( d != "" ) print n"_"d"."s;       \'
/archicom/appli/bin/arch_loadPartitionedObject[33]: : not found [Aucun fichier ou dossier de ce type]
/archicom/appli/bin/loadPartitionedObject.sh: ligne732: Erreur de syntaxe pr▒s du symbole inattendu ▒ { ▒
/archicom/appli/bin/loadPartitionedObject.sh: ligne732: `outfile_name='echo $infile_name | awk -F.      '{ n=$1; if ( NF == 1 ) { if ( d != "" ) print n"_"d"."s;       \'
/archicom/appli/bin/arch_loadPartitionedObject[33]: : not found [Aucun fichier ou dossier de ce type]
/archicom/appli/bin/loadPartitionedObject.sh: ligne732: Erreur de syntaxe pr▒s du symbole inattendu ▒ { ▒
/archicom/appli/bin/loadPartitionedObject.sh: ligne732: `outfile_name='echo $infile_name | awk -F.      '{ n=$1; if ( NF == 1 ) { if ( d != "" ) print n"_"d"."s;       \'
/archicom/appli/bin/arch_loadPartitionedObject[33]: : not found [Aucun fichier ou dossier de ce type]
/archicom/appli/bin/loadPartitionedObject.sh: ligne732: Erreur de syntaxe pr▒s du symbole inattendu ▒ { ▒


I am calling the script /archicom/appli/bin/lancer_application_mauritius which calls loadPartitionedObject.sh
lancer_application_mauritius.lancer_application_mauritius
loadPartitionedObject.sh

Thanks,
Roshan
Reply | Threaded
Open this post in threaded view
|

Re: script from aix to linux

Roshan
I am now getting

/archicom/appli/bin/loadPartitionedObject.sh: ligne 1001 : set: -A : option non valable
set : utilisation :set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...]

Above message has gone
Reply | Threaded
Open this post in threaded view
|

Re: script from aix to linux

ErmanArslansOracleBlog
Administrator
It is basically not accepting the -A argument use in line 10001.
check the script accordingly.
Note that, set -A or set +A works only in ksh, not in bash.
Reply | Threaded
Open this post in threaded view
|

Re: script from aix to linux

ErmanArslansOracleBlog
Administrator
If you need to run it with bash, You can switch to other array syntax.