I'm trying to write a script that does

x =$ncore
numactrl -C $x ( time -p $exe ) > out.txt 2>&1

on the terminal ( time $ exe ) > out.txt 2>&1 worked as i wanted to (out.txt containing output of time and executable )

i'm using red hat 6.2 and time is not GNU version( i'm assuming from the fact that -a -o options don't work)

i want out.txt to have output from the executable and at the end have output from the time command.

the bash script is giving me problems with having ( so i used ( time -p $exe ) and now numactl sees ( as the executable.

is there a way to use numactl and time command together and have the output i want ?

share|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.