3213
|
1 # run_cmd: short script used in demos |
|
2 # prints string cmd to the screen, then executes after a pause |
|
3 |
|
4 # $Revision: 1.1.1.1 $ |
|
5 # $Log: run_cmd.m,v $ |
|
6 # Revision 1.1.1.1 1998/05/19 20:24:05 jwe |
|
7 # |
|
8 # Revision 1.4 1997/02/20 16:07:26 hodel |
|
9 # added "fflush" after disp("executing") |
|
10 # |
|
11 # Revision 1.3 1997/02/12 15:38:14 hodel |
|
12 # added separator after command execution |
|
13 # |
|
14 # added blank line after eval(cmd) |
|
15 # |
|
16 # Revision 1.1 1997/02/12 11:35:08 hodel |
|
17 # Initial revision |
|
18 # |
|
19 # Revision 1.3 1997/02/07 15:44:13 scotte |
|
20 # Added "executing" string so that users would know that the command was |
|
21 # being processed |
|
22 # |
|
23 |
|
24 disp(["Command: ",cmd]) |
|
25 puts("Press a key to execute command"); |
|
26 fflush(stdout); |
|
27 kbhit(); |
|
28 disp(" executing"); |
|
29 fflush(stdout); |
|
30 eval(cmd); |
|
31 disp("---") |
|
32 disp(" ") |