on my server there is running qnx 6.x with slinger as http-server.
on my testing-workstation there is winxp.
now i am trying to mount some directory of my wiorkstation on the server by using a cgi-script in c. but the effect is error 256 (socket is already connected).
when i try to mount via telnet (using the same command) it works without problems.
Your intepretation of the return code from system may not be correct. Check the docs.
You may want to write a simple shell script that wraps the “fs-cifs” command and put some sleeps in there. Your system() can then call the scripts. You can have more flexibility in your “script” where you can put more logging for troubleshooting.
no i tried several times to mount and make a “sleep xx” after different commands i use for mounting. but always with the same result:
there is no effect…
fs-cifs is always done well and running after being activated, but the real mount with the command:
mount -t cifs -o rtc,123456 //name:ip/qnx /mnt/qnx
never works! it’s only active in the moment, when the command is performed.
how could i know this.
i made some loop, always mounting für about 500 times and making “pidin a” on the telnet terminal the same time…
so i ask again:
why can i mount without any problems on the telnet terminal, but byusing my script there are so many problems??