Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2016
    Posts
    1

    Unanswered: UniBasic - Begginer's simple question: How to feed answers to prompts automatically

    I need to create and run a single-command UniBasic program to run a scheduled maintenance task on a regular basis. The problem is, when you run it as a command within the application, it requires a "confirmation" answer of "Yes". How can I provide the "Yes" answer programatically within the code?

  2. #2
    Join Date
    Sep 2016
    Posts
    1
    Quote Originally Posted by byronhay View Post
    I need to create and run a single-command UniBasic program to run a scheduled maintenance task on a regular basis. The problem is, when you run it as a command within the application, it requires a "confirmation" answer of "Yes". How can I provide the "Yes" answer programatically within the code?
    Assuming the maintenance task can be run from the ECL (command) prompt ...

    The program needs to be more than one command, you will have to "stack" the input with the DATA command before executing the maintenance task

    e.g.

    DATA "Y"
    EXECUTE "My_Scheduled_Task"

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •