Re: system() produces error.

From: Jamie Ruff (jjr183_at_adelphia.net)
Date: 07/14/04

  • Next message: Purl Gurl: "Re: system() produces error."
    Date: 13 Jul 2004 19:40:03 -0700
    
    

    > What command line syntax are you using which successfully
    > appends one file to another file?
    >
    >
    > Purl Gurl

    I am using the UNIX command that is available through cygwin. For
    example, if I have these two files:

    file1.txt
    Only line of file 1.

    file2.txt
    Only line of file 2.

    and type in a cmd window with the cygwin\bin path set properly the
    following:
    cat file1.txt >> file2.txt

    file2.txt will now look like this:

    file2.txt
    Only line of file 2.
    Only line of file 1.

    which is what I am looking for (this is what I tried manually to prove
    to myself that I was not going insane or doing something stupid). I
    do not want to use the DOS 'type' command because I eventually want to
    port this to run directly on UNIX without having to do any recoding.
    The problem appears to be using any redirection or pipes in a system
    command when that system is making use of the cygwin binaries on a
    Windows system.


  • Next message: Purl Gurl: "Re: system() produces error."

    Relevant Pages

    • Re: generating executables in common lisp
      ... unix command line. ... take in command line input, calculate the answer, and report the answer ... Build your program with ECL. ... If you compile your code, ...
      (comp.lang.lisp)
    • script quitting abruptly (long)
      ... I'm having a problem of a script that just abruptly quits. ... "robust" way, so that no matter what happens, even if the command ... Run a unix command and return the response generated by the ...
      (comp.lang.perl.misc)
    • Re: command query
      ... > I have a question regarding a unix command that maybe someone can help ... gives the usernames of everyone logged in. ... - Do the first part of the first suggestion to get the ...
      (comp.os.linux.misc)
    • Re: Could a PC do this?
      ... And thus the reason for Unix command popularity as well as the ability ... assume the Unix command set is any different. ... propensity to acquire some rather odd skills. ...
      (comp.os.vms)
    • Re: Error number: 0x80248011
      ... > Hi Robert, ... Either use the services.msc GUI to see it or the command ... I gave you (in a cmd window). ... > re-install of the windows update with no success... ...
      (microsoft.public.windowsupdate)