Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Server Variables Not Resolving Reliably
2017-11-15, 13:59
Post: #6
RE: Server Variables Not Resolving Reliably
Code:
choose --default exit --timeout 30000 target && goto $

The
Code:
&& goto $
is probably bollixing this. The goto points to an undefined variable.

Try something like
Code:
|| exit
...

With any scripting language which doesn't have an IDE or ISE and particularly with "goto" which invites "spaghetti code", the echo command can be a very useful tool help debug where in the script you are having issues:

Code:
set boot-url http://${next-server}
echo ${boot-url}

# Set Menu Timeout
set menu-timeout 5000
set submenu-timeout ${menu-timeout}
echo ${submenu-timeout}

etc...

"Thus far, you have been adrift within the sheltered harbor of my patience..."
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Server Variables Not Resolving Reliably - MultimediaMan - 2017-11-15 13:59



User(s) browsing this thread: 3 Guest(s)