tags:

views:

261

answers:

1

Redirection operator does not work. So how should we do it? One more question, in makefile, how can we give arguments from command line, like

run: a.out
    ./a.out **<input>**
A: 

gcc prints its error messages to stderr, so you have to redirect stderr:

gcc -o foo foo.c 2> foo.gccmessages

You give arguments on the command line always in the same way

./a.out argument1 argument2 argument3
Martin v. Löwis
In makefile, I want to specify that input will be given from command line.I am not asking how to give input at command line? How to do that?
avd
You do that by asking a separate question and getting answers to it.
Pavel Shved
Ok I got that, if we want to append the output to a existing file, then what should we do?
avd
You use the `2>>` operator.
Martin v. Löwis