MikeS
Veteran Member
As far as I can see that's the problem with what Mike wants to do....The big difference between DOS and Unix in implementation, however is the issue of "piping" the output of one program to the input of another. DOS, being single-tasking writes the output of a "piped" program to a file and waits until the originating program has completed before passing the contents of the file to the receiving program. In Unix, the linkup is real-time; that is, both programs are loaded in memory and the output of one is passed to the input of the other as it happens.
Using <> in my original reply was of course confusing; what I meant was:
ECHO [Insert text to send here] | FTP
But there are (at least) two problems:
- ECHO can't send multiple lines; this could be solved by using a more flexible replacement for ECHO
- You would have to somehow send a CTL-Z or terminate the batch file in order to actually send the text in question 'down the pipe' to the FTP program (which would of course actually have to get its input from stdin instead of bypassing it as many programs do).
Last edited: