Operating System - HP-UX
1826656 Members
2587 Online
109695 Solutions
New Discussion

Log redirection issue inside Makefile

 
SOLVED
Go to solution
Syed Madar J S
Frequent Advisor

Log redirection issue inside Makefile


Hi,

I am trying to redirect output into a file from, inside the makefile, into a filename called "log" as below

=======
run:
cd $(PATH)/aget-0.2/; \
aget -h > log
=======

But we are facing issue and the redirection is not happening.
Please let know, is there anyother way to get the output redirected ?

Please comment.
1 REPLY 1
Dennis Handly
Acclaimed Contributor
Solution

Re: Log redirection issue inside Makefile

(I assume each line is indented by a tab?)
I don't see anything wrong with it, unless you also need to redirect stderr with: 2>&1