PDA

View Full Version : ksh script erroring with "more tokens expected"



CICJIS
10-Jan-2013, 19:11
I have a ksh script that works fine on SLES 9.3, 10.3 but is hanging when I attempt to run it on 11.3.
When I kill the process from another session I am seeing the following in the session that was running the script which seems to be pointing me to the function call to the function AddResolution where it is saying "more tokens expected"

Here's what I am seeing in the putty session after I kill the process running the script:
/usr/cicjis/tools/shTranIdDoit[3624]: GetResolution[2220]: AddResolution[2249]: let: ErrorNoteOid=: more tokens expected

Any ideas would be greatly appreciated. I've been beating my head on this one all morning and half the afternoon yesterday.

Here is the fragment of the script that I believe is giving me the problem::confused:
function AddResolution
{ ...
...
let ErrorNoteOid=$(AddErrorNote $TranId $MaxLineNo "$fLine") <--- This appears to be where it is
...
...
}

function AddErrorNote
{
print "Inside AddErrorNote"
...
...
)

Automatic reply
17-Jan-2013, 14:30
CICJIS,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

- Visit http://www.suse.com/support and search the knowledgebase and/or check all
the other support options available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.suse.com)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.suse.com/faq.php

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your SUSE Forums Team
http://forums.suse.com