Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The odd thing is this: it works fin until the point at which it *should* put in the password for me. Then it hangs. If at this point I type the password and press enter, it says "Invalid command", and then continues as normal, putting the inbox file on the desktop as it should. What is going on here? Is there any way around this? Thanks.#!/usr/bin/perl open (FTP, "|ftp") || (die "Couldn't fork process"); print FTP "open my.email.server\n"; print FTP "my_userid\n"; print FTP "my_password\n"; print FTP "lcd /windows/desktop\n"; print FTP "get /var/mail/userid\n"; #location of my inbox print FTP "bye\n"; close FTP;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Writing to a program
by davorg (Chancellor) on Aug 02, 2000 at 00:59 UTC | |
by Anonymous Monk on Aug 02, 2000 at 01:06 UTC | |
|
Re: Writing to a program
by maverick (Curate) on Aug 02, 2000 at 01:25 UTC | |
by davorg (Chancellor) on Aug 02, 2000 at 12:08 UTC | |
by maverick (Curate) on Aug 02, 2000 at 18:59 UTC | |
|
RE: Writing to a program
by Corion (Patriarch) on Aug 02, 2000 at 12:25 UTC |