11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

WAKE<br />

Syntax<br />

WAKE pid<br />

Description<br />

The <strong>UniBasic</strong> WAKE command activates a UniData process (pid) that has been<br />

paused with either the ECL PAUSE command or the <strong>UniBasic</strong> PAUSE command. If<br />

the specified process has not already been paused, UniData disregards the next<br />

PAUSE issued for the process indicated by pid.<br />

Example<br />

The following program, WAKEUP, lists paused processes, then prompts for the ID of<br />

a process to wake up. Next, the program executes the <strong>UniBasic</strong> WAKE command<br />

against that process, and then executes LIST.PAUSED again to verify that the process<br />

was reactivated.<br />

WAKEUP<br />

EXECUTE "LIST.PAUSED"<br />

PRINT "Enter ID for process to wake ":<br />

INPUT pid<br />

WAKE pid<br />

EXECUTE "LIST.PAUSED"<br />

The following example shows the results of executing the preceding program,<br />

waking up process 10811:<br />

1 :RUN BP WAKEUP<br />

2 Number of Paused Users<br />

3 ~~~~~~~~~~~~~~~~~~~~~~<br />

4 1<br />

5<br />

6 UDTNO USRNBR UID USRNAME USRTYPE TTY LEFTTIME<br />

TOT_TIME<br />

7 1 10811 1283 carolw udt pts/0 - -<br />

8<br />

9 Enter ID for process to wake ?10811<br />

10 Number of Paused Users<br />

11 ~~~~~~~~~~~~~~~~~~~~~~<br />

12 0<br />

WAKE 1-896

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!