home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d8xx
/
d801
/
cybercron.lha
/
CyberCron
/
RexxScripts
/
CCShow.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1993-01-24
|
1KB
|
70 lines
/***********************/
/* CCShow.rexx */
/* 5/1/92 - caw */
/* based on */
/* NCShow.rexx */
/* 7/20/89 - Don Nafis */
/***********************/
/* Remove the comments below to trace this script. */
/* trace ?r */
options failat 20
options results
parse arg portname
portname = strip(portname, b)
if portname = "" then portname = "CYBERCRON"
address value portname
'LIST_EVENTS'
if (result = "") then say "LIST_EVENTS error "
else
do
eventlist = result
numwords = words(eventlist)
if (numwords > 0) then
if (word(eventlist,1) ~= "<None>") then do
say
version
say 'CyberCron v'result '- Active Events:'
say
do j=1 to numwords
event = word(eventlist,j)
'SHOW_EVENT '|| event
eventDisp = result
if (eventDisp = "") then
say '->' || event || ' not found.'
else
say '->' || eventDisp
event_next_exec event
nextexec = result
if (nextexec ~= '') then
if (nextexec = 0) then
say " will not execute in the future"
else do
sssc_to_ascii nextexec
say " next execution at" result
end
end
end
else
do
say
say 'CyberCron has no active events.'
end
say
'SHOW_STATUS'
say 'Status: '||result
say
end