home *** CD-ROM | disk | FTP | other *** search
- /* */
- parse upper arg server commandToDo otherargs
-
- /* select the server */
- address value server
-
- /* use the server */
- 'use'
- /* use failed, then someone else is using the server, and we shouldn't
- continue */
- if rc ~= 0 then exit
-
- 'requiredevice' 'telephoneline'
-
- avmbusy = getclip('AVMBusy')
- if avmbusy = "" then call setclip('AVMBusy', '1')
- else call setclip('AVMBusy', avmbusy + 1)
-
- /* run the command */
- address rexx 'avmrexx:' || commandToDo otherargs
-
- /* voice mode */
- 'requiremode' 'voice'
-
- 'flushphonebuffer'
-
- avmbusy = getclip('AVMBusy')
- call setclip('AVMBusy', avmbusy - 1)
-
- /* unuse the server */
- 'unuse'
- exit
-
-