No, there's no error message, just one of the commands gets truncated. My script is now slightly different and it's going wrong in the same way in a slightly different place, now line 109 byte offset 4289. Here is a snip around where it goes wrong:
echo :end_logsum:
echo Job Name : SrcVRMigrationExtractUKAddress.442
echo :jobinfo:
gives this:
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine>
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine> echo :end_logsum:
:end_logsum:
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine>
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine> echo Job Name : SrcVRMigrationExtractUKAddres
Job Name : SrcVRMigrationExtractUKAddres
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine>
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine> echo :jobinfo:
:jobinfo:
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine>
The "...Address.442" echo command has been truncated at "...Addres", some others are being truncated also.
For example, later on in the script:
echo :end_logsum:
echo Job Name : TfmVotersRollMigration.442
echo :jobinfo:
gives this:
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine>
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine> echo :end_logsum:
:end_logsum:
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine>
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine> echo Job Name : TfmVotersRollMigration.442
Job Name : TfmVotersRollMigration.442
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine>
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine> echo :
:
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine>
This time it's the "echo :jobinfo:" that is being truncated to "echo :".
Later on, an echo command is truncated to just "ec" with an error message:
hibbsph@cs-uat-etl02:/software/opt/IBM/InformationServer/Server/DSEngine> ec
If 'ec' is not a typo you can run the following command to lookup the package that contains the binary:
command-not-found ec
-bash: ec: command not found
This could be very dangerous if, for example, I did "rm *.bak" and it got truncated to "rm *"!
---------- Post updated at 04:58 PM ---------- Previous update was at 04:20 PM ----------
OK, I think I've resolved it... I have switched from using < to feed the script in, to using plink's -m "c:\dev\telnetcmd.txt" command line option.