Please help about "pax" command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nextstep
    New Member
    • Aug 2012
    • 14

    Please help about "pax" command

    Hi everyone,

    I have a problem need your help about "pax" command in linux.
    Exactly what I am doing that is archiving a folder (containing many files in) by using "pax" command. And further more, I want to insert some field to archived file after archived.

    After searching on internet and linux's manpage to pax command, I found one way can do it by using -o option. The syntax is:

    Code:
    pax -w0z -o keyword=value ....
    But I had tried many time on my linux (NetBSD) but I always get failure in result

    Could anyone here help me resolve it please?

    Thanks in advance!
  • rski
    Recognized Expert Contributor
    • Dec 2006
    • 700

    #2
    What does the failure say?

    Comment

    • nextstep
      New Member
      • Aug 2012
      • 14

      #3
      Hi rski,

      The failure message seems like error syntax. Could you give me some example for using pax with -o options to archive files.

      Thanks in advance!

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Is it a syntax error message or not? That should tell you where your issue is

        Google should also be able to provide example usages, along with man pax or pax --help (and sometimes just the command itself without options, as long as that doesn't perform a function - I'm not familiar with the pax command, so I can't say)

        Comment

        Working...