Is there anyone reading this newsgroup that has experience with an old IBM
mainframe (4361) and/or VSE/SP or CICS experience?
Dana Brewer
DanaTbird (AOL)
71670,2376 (Compuserve)
Is there anyone reading this newsgroup that has experience with an old IBM
mainframe (4361) and/or VSE/SP or CICS experience?
Dana Brewer
DanaTbird (AOL)
71670,2376 (Compuserve)
1. MVS Mainframer needs help on pipes and process arguments
I've been trying for a couple of days to figure out how to get the arguments
of a running process from within a C program. I came across some code on the
net that lead me to try this. Now I'm not sure why it doesn't work. I've
been able to ensure that there are no errors, but the flow of program
execution doesn't work like the original example lead me to believe it
would..... I'm sure, I've used "dbx" to watch the program execute.....
Is the fgets() valid for pipes??? Anybody that can help????
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[])
{
char line[133];
char command[80];
FILE *fp;
strcpy(command, "ps -efo ""%p %P %a"" 2>/dev/null");
fp = popen(command, "r");
/* file handle is assigned, no error */
while (!feof(fp)) /* can use feof() on file handle fp */
{
/* execution continues */
if (fgets(line, sizeof(line), fp) == 0) /* fgets() returns 0, line is
null */
{
/* execution falls into this code on first call */
pclose(fp);
return 0;
}
else
{
printf(">%s<\n",line);
}
}
3. Q: vi/ex does not work under linux 6.0 (ex - '+$-22,$d|wq!' filename)
6. How do I get load average (% of cpu)
7. ex command
8. SUN boxes full/half duplex by default ???
9. From an ex Microsoft devotee
10. $100,000.00 REWARD 4 AL Hill ex-Dayton Power & Light President
11. vi, ex & DEL key
12. Help: why doesn't this reg.ex. work: ^>$
13. Help! Problem with BJ10-ex