There is no standard way to get a file re-directed to be treated as a command line in c68.
You can do file level re-direction and then process the input as though it comes from "stdin". The standard c68 start-up code will handle attaching the input as stdin, but the processing of this input so that it can be an alternative to the command line has to be implemented within the program itself and is not a standard feature of the c68 start-up code. The main reason that this is not done is simply because there is no agreed syntax that specifies the parameters for a command line are coming from a file. It would be relatively trivial to enhance the C68 start-up code to implement such a feature given an agreement on the syntax for recognising the command line re-direction to a file for parameters. The idea sounds like a good one, so if anyone has suggestions on a proposed syntax I am happy to consider them for inclusion into the standard c68 build. Is there any standard for this in the Posix/Unix world as I have not come across such a feature? What about other OS? Dave ----- Original Message ----- From: "P Witte" <[EMAIL PROTECTED]> To: "ql users mailing list" <[EMAIL PROTECTED]> Sent: Saturday, April 20, 2002 10:28 PM Subject: [ql-users] c68 question > Is there a way to get a c68 program to accept a commandline > (or part of a command line) from a file/pipe. > > I want to achieve something like: > > EX cprog ; "-options parameters <filelist_file" > > rather than > > EX cprog ; "-options parameters file1 file2 .. fileN" > > Or is all this entirely up to cprog? > > Per > > > > > >
