Re: system() produces error.
From: Jamie Ruff (jjr183_at_adelphia.net)
Date: 07/14/04
- Previous message: Godzilla: "Re: system() produces error."
- In reply to: Godzilla: "Re: system() produces error."
- Next in thread: Purl Gurl: "Re: system() produces error."
- Reply: Purl Gurl: "Re: system() produces error."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: Godzilla: "Re: system() produces error."
- In reply to: Godzilla: "Re: system() produces error."
- Next in thread: Purl Gurl: "Re: system() produces error."
- Reply: Purl Gurl: "Re: system() produces error."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|