Author Topic: Post operation pipe to file not working  (Read 5890 times)

Offline BrianSidebotham

  • Multiple posting newcomer
  • *
  • Posts: 45
Post operation pipe to file not working
« on: May 22, 2007, 04:38:01 pm »
Hi guys,

If I execute
Code
arm-elf-objdump -h -S test.elf >> test.lss

in a normal shell, I end up with the output of objdump as a file. Yet, if I add this as a post operation in codeblocks, the output of objdump goes to the build-log window instead. I then get a message at the end which says:

Warning >> is not an ordinary file

in the build messages window. I don't have the codeblocks source at the moment, so can't go an investigate. But is there a workaround, or a known way to pipe to a file under codeblocks?

Sorry, I meant to say:

Working on Windows XP, c::b SVN 3970
« Last Edit: May 22, 2007, 04:42:04 pm by BrianSidebotham »

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Post operation pipe to file not working
« Reply #1 on: May 22, 2007, 05:10:58 pm »
Issue the following command.
Code
cmd.exe /C "arm-elf-objdump -h -S test.elf >> test.lss"

Regards,

Biplab
Be a part of the solution, not a part of the problem.

Offline BrianSidebotham

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: Post operation pipe to file not working
« Reply #2 on: May 22, 2007, 07:13:17 pm »
Ah ha, Thankyou!