At 12:50 AM 4/21/2002 +0100, you wrote: >But is the command line the same as stdin? I tried the syntax in (1) above >and also:
The command line is not STDIN. With C (and Perl) the command line is normally stored in a variable (ARGV tells how many arguements). ARGV[0] is the program that was executed, ARGV[1] is the first argument, etc. (ARGV is close the the real answer. Check a C manual for the exact variable name. I'm going by memory here). > 3 EX cprog, file_list, #1; "-options parameters " I believe you are doing channel redirection (again going from memory). I have not tried this with C68 and found a problem with it in Qliberator (a bug caused it not to work). The Qlib docs talk about how this works. I don't know if TKII docs or SMSQ/E docs talk about channel redirection or not. I don't think it's used all that often. > 4 EX cprog, file_list, #1; "-options parameters -f file_list" > >returns "cannot open -f file_list" - ie it thinks -f file_list is one of the >list of files.. -f as one of the options makes the program take <parameters> >to be the file_list filename! Ie it will happily except a list of parameters >from the file, but not a list of files. The program has to be written so that it thinks that '-f file_list' is a proper option and knows how to deal with it (in other words, you need to fill in this part to make it work). Without it knowing the '-f' option then of course it will assume it's a file name. Besides, I suggested a '-f' option as an example, you can name the option what ever you want. I'm assuming you are dealing with code that you are writing. Tim Swenson
