Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-16-2005, 07:29 PM   #1
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Fedora (Desktop), CentOS (Server), Knoppix (Diags)
Posts: 934

Rep: Reputation: 38
Pipe a file into another?

I don't know how to describe (in the subject) what I'm trying to do ...

In Windows, say you have the following files, with their contents:

telnet < DATA.TXT

{ --- other commands ---}

When run the CONNECT.BAT script would connect and send the data in DATA.TXT through telnet.

When I attempt this same thing in Linux it doesn't work. I chmod +x my script and use the same basic command (script < datafile).

Can someone tell me how to do it properly?
Old 04-16-2005, 10:42 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,790

Rep: Reputation: 292Reputation: 292Reputation: 292
"When I attempt this same thing in Linux it doesn't work. I chmod +x my script and use the same basic command (script < datafile)."

Could you post the script that you are running?

Steve Stites


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
pipe output to append to a text file davee Linux - Newbie 5 03-22-2016 08:44 PM
Possible to pipe output and error to a file while displaying them on monitor? Akhran Linux - Newbie 2 03-29-2006 06:04 AM
ftp file listing: how to pipe to less? Lotharster Linux - Newbie 2 11-29-2005 09:45 PM
pipe xine output to file sohmc Linux - Software 0 01-01-2005 11:03 PM
Pipe telnet session output to text file joshlamerritt Linux - Software 3 02-10-2004 09:42 PM

All times are GMT -5. The time now is 06:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration