Ticket #39783

Script ignoring wait statement

Date d'ouverture: 2019-11-22 18:45 Dernière mise à jour: 2023-01-10 08:19

Rapporteur:
(Anonyme)
Propriétaire:
(Aucun)
Type:
État:
Ouvert
Composant:
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
9 - le plus élevé
Résolution:
Aucun
Fichier:
Aucun
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Détails

My TTL script ignores a wait statement at certain point of the script. In previous code parts, the wait statement sucessfully detects a certain string (VarRootPrompt is definded as 'root '). Find the code part below where the wait statement is simply ignored.

; execute OPK install
sendln 'opkg install package.opk'

; update timeout
timeout = 30


; wait till prompt is available
wait VarRootPrompt
if result=0 goto LABEL_TIMEOUT

; request execution state
sendln 'echo $?'

; wait for answer of Y_TCGx
wait '0' '1'

; check if execution is successful
if result=0 goto LABEL_TIMEOUT
if result=2 goto LABEL_TIMEOUT

The whole process is logged. The logfile content shows that the wait statement is simply ignored. The script sends "opkg install package.opk" and directly after that, without waiting for "root ", sends "echo $?"

[root] tmp # opkg install package.opk
echo $?

exit
Installing xxx on root.
Configuring xxx.
[root] tmp # echo $?
0
[root] tmp # 
[root] tmp # exit

Can you explain this behaviour? Does the recognition of wait statements depend on something?

Ticket History (2/2 Histories)

2019-11-22 18:45 Updated by: None
  • New Ticket "Script ignoring wait statement" created
2023-01-10 08:19 Updated by: nmaya
  • Priorité Update from 9 - le plus élevé to 5 - moyen

Attachment File List

No attachments

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion