Changeset 4462 for trunk/Ohana/src/opihi/pcontrol/GetJobOutput.c
- Timestamp:
- Jul 6, 2005, 10:29:08 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/GetJobOutput.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/GetJobOutput.c
r4450 r4462 3 3 4 4 /* we read Nbytes from the host, then watch for the prompt */ 5 int GetJobOutput (char *c ommand, Host *host, IOBuffer *buffer, int Nbytes) {5 int GetJobOutput (char *cmd, Host *host, IOBuffer *buffer, int Nbytes) { 6 6 7 7 int i, status, Nstart; … … 13 13 Nstart = buffer[0].Nbuffer; 14 14 15 /* send c ommand (stdout / stderr) */16 ALLOCATE (line, char, MAX (1, strlen(c ommand) + 1));17 sprintf (line, "%s\n", c ommand);15 /* send cmd (stdout / stderr) */ 16 ALLOCATE (line, char, MAX (1, strlen(cmd) + 1)); 17 sprintf (line, "%s\n", cmd); 18 18 status = write (host[0].stdin, line, strlen(line)); 19 19 free (line); … … 46 46 47 47 default: 48 fprintf (stderr, "message received (GetJobOutput : %s)\n", c ommand);48 fprintf (stderr, "message received (GetJobOutput : %s)\n", cmd); 49 49 /* drop extra bytes from pclient (not pclient:job) */ 50 50 buffer[0].Nbuffer = Nstart + Nbytes;
Note:
See TracChangeset
for help on using the changeset viewer.
