CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Logging to stdout with EXPECT. Can I alter the newline?

 



Calab
Novice


Jun 26, 2012, 10:12 PM

Post #1 of 3 (1446 views)
Logging to stdout with EXPECT. Can I alter the newline? Can't Post

I'm "repairing" some perl code that was written by someone else and trying to clean it up as I go along...

I've had a request to make the output of the script more "DOS" friendly by altering the newline character used on the output to something that will work in DOS.

My problem is that the output is generated by turning on stdout logging in EXPECT. I don't see any way to alter the newline character that is used when writing to stdout.

Can the newline character going to stdout from EXPECT be changed?


wickedxter
User

Jun 28, 2012, 3:13 PM

Post #2 of 3 (1150 views)
Re: [Calab] Logging to stdout with EXPECT. Can I alter the newline? [In reply to] Can't Post

look in to this special variable $\


Calab
Novice


Jul 9, 2012, 4:19 AM

Post #3 of 3 (951 views)
Re: [wickedxter] Logging to stdout with EXPECT. Can I alter the newline? [In reply to] Can't Post

I figured out where I was making my mistake... I misunderstood the way that EXPECT works.

I was able to alter the output of the command run by EXPECT so that the EOL was what we needed.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives