Subject: | |
From: | |
Reply To: | |
Date: | Tue, 9 Sep 2008 10:40:11 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hi,
I have been fighting with HPCICOMMAND. I am trying to get a simple
program to run that calls HPCICOMMAND. It builds and links just fine,
but when it runs it errors with
@
Command not terminated by carriage return (%15). (CIERR 13)
Err -15361 13
Here is the source:
#include "stdlib.h"
#include "string.h"
#include <mpe.h>:
#include <dce/pthread_exc.h>
int main (int arg,char* argv[])
{
short cmderror;
short parmnum;
HPCICOMMAND("SHOWTIME > TIME.GECS.SYS\r", &cmderror, &parmnum);
printf("Err %d %d\n", cmderror, parmnum);
return 0;
}
Here are the complier switches I use:
-DUNIX -DMPE3 -D_MPEXL_SOURCE -D_POSIX_SOURCE -D_SOCKET_SOURCE
-D_REENTRANT -D_PTHREAD_D4 -D_MPE_THREADS -DMPEXL
I am compiling on version 6.5 in the Posix shell using GCC. (The source
is obviously C and has to remain C).
Is this a bug or am I doing something wrong? I have tried a variety of
command lines and different string formats with no effect.
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|