Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-18-2012, 10:52 AM   #1
LQ Newbie
Registered: May 2012
Posts: 5

Rep: Reputation: Disabled
Question about Expect programming...

How Can I send the content of a file in Expect? Do I have to use cat command in a way? if yes how? lets say my file is called 1.txt.
expect "Enter command to send:" {send "???? \r"} ???? --> content of the file 1.txt
Old 05-18-2012, 11:13 AM   #2
Ser Olmy
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,304

Rep: Reputation: Disabled
Have you looked at this post?
Old 05-18-2012, 12:01 PM   #3
LQ Newbie
Registered: May 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Originally Posted by Ser Olmy View Post
Have you looked at this post?
Thanks a lot!!!


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Expect Programming on Linux sunilvadranapu SUSE / openSUSE 2 03-23-2009 02:35 AM
expect question reitzell Programming 1 11-20-2004 09:03 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:34 PM.

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
Open Source Consulting | Domain Registration