Seems such a shame to have to call perl from the command line or (last resort), run FTP using the shell.
Your explanation makes sense. What a pain! --- [EMAIL PROTECTED] wrote: > > ------------------------------------------------ > On Fri, 21 Mar 2003 12:29:06 -0800 (PST), Jeff Westman <[EMAIL PROTECTED]> > wrote: > > > I need help! > > > > I am connecting to a remote server using Net::Telnet. I am then running > some > > programs, which works fine. Now I need to send the results back to the > local > > server that established the connection. > > > > #----- start > > $t = new Net::Telnet (Input_Log => "__debug_log" ); > > ... > > print "Attempting FTP from $store to $local\n"; > > @result = $t->cmd( $ftp = Net::FTP->new($local) ); > > #----- end > > > > When this completes, it executes the following on the remote server: > > > > $ Net::FTP=GLOB(0x4027a304) > > ksh: syntax error: `(' unexpected > > $ > > > > Maybe I am doing this wrong, but I am attempting to create an ftp object > in > > the middle of a telnet call. > > > > Ah the "beauty" of a client/server environment. The parameter you pass to > the 'cmd' of the Telnet object is a program (command line) to run in the > shell of the external connection. So you are telling it to run the command > Net::FTP=GLOB, etc. which is not a command. So to FTP from the remote > location either you have to call an ftp client on the remote location on > the command line, or you could do something really hokey like calling perl > with the -e operator and passing all of your code over to the perl as a one > liner, this naturally requires Perl to be installed on the remote location. > Essentially all of this is VERY ugly and a pain in the butt, but it can be > done. In fact we are doing this over an SSH connection, but it ain't pretty > let me tell ya (and I didn't write it). > > http://danconia.org > __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]