home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: OtherApp
/
OtherApp.zip
/
PMPAGER.ZIP
/
PMCSTART.CMD
next >
Wrap
OS/2 REXX Batch file
|
1991-11-02
|
3KB
|
54 lines
/* rexx */
/* ****************************************************************** */
/* */
/* PMCSTART.CMD (OS/2) */
/* Copyright (c) 1991 Robert G Gaillard. */
/* */
/* ****************************************************************** */
/* */
/* PMCSTART.CMD is a simple REXX program to be automatically */
/* initiated (thru the script STARTUP.SCR) each time Pmcomm is */
/* started. */
/* */
/* This sample program is used only to start PMPAGER.CMD. Individual */
/* users may add other functions as desired. */
/* */
/* Input (REXX Arg List): */
/* Pmcomm Standard Parameters: */
/* Port */
/* Portname */
/* Screen_handle */
/* Dde_output */
/* Dde_input */
/* Semaphore */
/* */
/* Output: */
/* None */
/* */
/* External Calls: */
/* RxFuncAdd */
/* Init_dll */
/* Pmpager */
/* */
/* ****************************************************************** */
signal on syntax name syntax_error
parse arg port portname screen_handle dde_output dde_input semaphore
parse source . . fn .
call RxFuncAdd "init_dll","RxPmcomm","init_dll"
call init_dll
curr_dir=directory()
log_file=curr_dir"\SCRERROR.LOG"
call pmpager port portname screen_handle dde_output dde_input semaphore
exit(0)
/* */
syntax_error:
errormsg = "REXX error" rc "in line" sigl":" errortext(rc)
rc = lineout(log_file,date() time() fn "-" errormsg)
rc = lineout(log_file,date() time() fn "-" sourceline(sigl))
exit