k***@gmail.com
2006-01-19 13:01:37 UTC
Hi,
I am executing a C program in AIX 4.3 machine.
The program sends email with the body redirected from a file.
I use mailx command ( sendmail utility ) in AIX.
The code has following lines:
########################
char *str = "mailx -s hi -c ***@abc.com ***@abc.com < test.txt"
rc = system(str);
#########################
I execute this in a loop for many times.
For example, if i execute it for 10 times then 1-2 mails are not sent.
The return from system command for these 2-3 failed mails is 32512
I printed value of rc and it showed that rc=32512.
The mailx command was not invoked.
I saw in some groups, they have mentioned that the return 32512 is
because the exec of the child process failed.
I want to know the reason why the exec of the child process failed.
I have verified that the number of processes is not exceding the system
limit.
Can anyone please tell me the root cause of this return 32512.
Thanks and Regards
Kiran Hiremath
I am executing a C program in AIX 4.3 machine.
The program sends email with the body redirected from a file.
I use mailx command ( sendmail utility ) in AIX.
The code has following lines:
########################
char *str = "mailx -s hi -c ***@abc.com ***@abc.com < test.txt"
rc = system(str);
#########################
I execute this in a loop for many times.
For example, if i execute it for 10 times then 1-2 mails are not sent.
The return from system command for these 2-3 failed mails is 32512
I printed value of rc and it showed that rc=32512.
The mailx command was not invoked.
I saw in some groups, they have mentioned that the return 32512 is
because the exec of the child process failed.
I want to know the reason why the exec of the child process failed.
I have verified that the number of processes is not exceding the system
limit.
Can anyone please tell me the root cause of this return 32512.
Thanks and Regards
Kiran Hiremath