ftp command is failing
hi
I am trying to execute ftp command from my process,but its fails with error
ftp: fdopen failed.
i came to know that fdopen fails if more than 256 files are open
now my process has more than 256 file descriptor open and they are necessary.
is there any other way ..please help
[322 byte] By [
khan_069] at [2007-11-26 10:28:44]

# 3
No idea, do you get anything interesting if you run ftp from apptrace, and ask it to trace fdopen? e.g:apptrace -o apptrace.outputfile -v fdopen ftp <hostname> .7/M.
# 5
There are significant limits on the stdio library for 32 bit executables.
I think they might be relaxed in newer versions of solaris 10, but I'm not sure.
Anyway you can either compile your program as a 64 bit executable or stop using stdio.
Use open, read etc directly instead of fopen, fprintf etc.