you are right it is not supported, how can I do that, should I use 
net::telnet or is there a module working for that kind of job?

first I try FTP because I got the entire file but I thought later I can just 
get a few line and not the entire file.

Is there a way to just get a few line, like
@lines=get->(parameters,file) ?

Thank you

Pierre


>From: Michael Fowler <[EMAIL PROTECTED]>
>To: P lerenard <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: egrep and $ftp->cmd
>Date: Fri, 19 Oct 2001 14:29:50 -0800
>
>On Fri, Oct 19, 2001 at 08:51:45PM +0000, P lerenard wrote:
> > I try to get one line from a file on another server.
> > I tried with Net::FTP
> > $ftp = Net::FTP->new("server");
> > $ftp->login($user,$pass);
> > $ftp->cwd("dir");
> > @zone = $ftp->cmd("egrp -n 'zone \"try.com' file");
> > $ftp->quit;
> > print @zone;
> >
> > I don't know if ->cmd support this command, it doesn't work with me.
> > is there another way to do that, I don't want to get the file.
>
>First, where are you getting this cmd() method?  As far as I can tell
>neither Net::FTP or Net::Cmd has a method by this name.
>
>Second, neither egrep or egrp are commands defined in the FTP spec; if this
>command is possible it's only because the server supports the command in
>some way.  If it does, then you need to consult the documentation or
>administrator for this server.
>
>I'm suspecting you think anything that you can do at the command-line when
>logged into the machine you can do via FTP.  This is not the case unless 
>the
>FTP server specifically supports it.
>
>
>Michael
>--
>Administrator                      www.shoebox.net
>Programmer, System Administrator   www.gallanttech.com
>--
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to