On Tue, 5 Aug 2008, Kurt Franke <[EMAIL PROTECTED]> wrote:
Ralf Fassel gmx.de> writes:
In a SHELL script I prepare a temp file to pass to some non-cygwin
program:
# TMPDIR is set to c:/temp outside of cygwin
# which translates to /cygdrive/c/temp inside cygwin
# prepare input
T
Hi Ralf,
Ralf Fassel gmx.de> writes:
>
> In a SHELL script I prepare a temp file to pass to some non-cygwin
> program:
>
> # TMPDIR is set to c:/temp outside of cygwin
> # which translates to /cygdrive/c/temp inside cygwin
> # prepare input
> TMPFILE=$TMPDIR/foo.$$
> cat
* Ralf Fassel
| | Does it work to pass the contents of the file on stdin instead of
| | the file name as an argument?
| |
| | external_program < "$TMPFILE"
|
| Duh. This should work in 95% of the cases. In the other cases file
| size of TMPFILE is involved, so redirection would not work as-is.
* Eric Blake
| | # call program: error: no such file /cygdrive/c/temp/foo.1234
| | # filename should be c:/temp/foo.1234
| | external_program "$TMPFILE"
|
| Does it work to pass the contents of the file on stdin instead of
| the file name as an argument?
|
| external_program < "$TMPFI
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Ralf Fassel on 8/5/2008 4:59 AM:
| # call program: error: no such file /cygdrive/c/temp/foo.1234
| # filename should be c:/temp/foo.1234
| external_program "$TMPFILE"
Does it work to pass the contents of the file on stdin ins
In a SHELL script I prepare a temp file to pass to some non-cygwin
program:
# TMPDIR is set to c:/temp outside of cygwin
# which translates to /cygdrive/c/temp inside cygwin
# prepare input
TMPFILE=$TMPDIR/foo.$$
cat > "$TMPFILE" <<\EOF
some stuff
EOF
# call program
6 matches
Mail list logo