Join 2 files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DaveO

    Join 2 files

    Hi

    I am trying to create a self extracting zip file ( on my Linux web server )
    that will ultimately run on a windows OS.

    Research to date indicates that I need to create a zip file and then join it
    together with a win32 based sfx header stub ( which I have ).

    The resulting file can then be run on a windows OS, with the sfx stub
    running first and extracting the data from the zip file.

    Question is : how can I join the 2 files together into a new file ?

    Regards
    Dave


  • Roy Kaldung

    #2
    Re: Join 2 files

    DaveO schrieb:
    Hi
    >
    I am trying to create a self extracting zip file ( on my Linux web server )
    that will ultimately run on a windows OS.
    >
    Research to date indicates that I need to create a zip file and then join it
    together with a win32 based sfx header stub ( which I have ).
    >
    The resulting file can then be run on a windows OS, with the sfx stub
    running first and extracting the data from the zip file.
    >
    Question is : how can I join the 2 files together into a new file ?
    You could use the zip command via exec. For details see the manpage of
    zip: http://www.linuxcommand.org/man_pages/zip1.html

    hth, Roy

    --
    Roy Kaldung
    roy {at} kaldung {dot} com

    Comment

    • Toby A Inkster

      #3
      Re: Join 2 files

      DaveO wrote:
      Question is : how can I join the 2 files together into a new file ?
      Google: "man cat"

      cat file1 file2 >outfile

      --
      Toby A Inkster BSc (Hons) ARCS
      Contact Me ~ http://tobyinkster.co.uk/contact
      Geek of ~ HTML/CSS/Javascript/SQL/Perl/PHP/Python*/Apache/Linux

      * = I'm getting there!

      Comment

      • Toby A Inkster

        #4
        Re: Join 2 files

        DaveO wrote:
        I am trying to create a self extracting zip file ( on my Linux web server )
        that will ultimately run on a windows OS.
        PS: Windows XP has unzipping capabilities built into it. XP market share
        within the Windows market is at about 85-90%.

        --
        Toby A Inkster BSc (Hons) ARCS
        Contact Me ~ http://tobyinkster.co.uk/contact
        Geek of ~ HTML/CSS/Javascript/SQL/Perl/PHP/Python*/Apache/Linux

        * = I'm getting there!

        Comment

        Working...