08-21-2007 09:05 AM
08-21-2007 09:54 AM
08-22-2007 01:54 AM
Thanks, It work well.
But is there any way to fill it to variable without the need to save & read the txt file?
Trz
08-22-2007 04:39 AM
08-22-2007 08:50 AM
08-22-2007 09:57 AM
dummy_decoy wrote:
(as a side note: writing the output of the command to a file then reading the file is bad practice and particularly unsafe since an instance of your application may overwrite the result of another instance of your application running at the same time. also the file you specify as a redirection in your command may not be writtable or the path specified may be invalid, causing the command to fail without you noticing it.)
Well, it was a simple question which deserved a simple answer. If the application is likely to run more than one instance at a time, then the ANSI function tmpnam() could be used to ensure that the text file names used do not clash between concurrent instances. As for invalid or non-writable paths, even the most rudimentary testing of the software would reveal such basic errors. It would be poor software indeed which did not notice a missing file!
JR
08-22-2007 11:02 AM
"If the application is likely to run more than one instance at a time, then the ANSI function tmpnam() could be used to ensure that the text file names used do not clash between concurrent instances. As for invalid or non-writable paths, even the most rudimentary testing of the software would reveal such basic errors. It would be poor software indeed which did not notice a missing file!"
06-01-2008 11:15 AM
Hi,
I'm trying to get handle to the cmd - so that performing printf would not print to the stdio but to the command line,
I've read the link about the childprocess, do you have a simple example for how to use it?
thanks,
Noa
06-01-2008 02:06 PM
06-02-2008 01:20 AM
Hi,
I'm trying to do the following -
from my computer (windows xp) I'm opening a connection to Linux on another computer using plink.
now, from the Linux computer I would like to connect to some ftp server and retrieve a file from there to the Linux computer.
it is simple to do it manually but I'm trying to write an automatic code for that...
do you have any ideas?
thanks,
Noa