Net::FTP help for login & script 
Author Message
 Net::FTP help for login & script

Hi,

I've a question as how to do the following:

1) after successfully logging to a remote server using $ftp->login('username','password'), I then to
to run a UNIX script (basically a version of su) where I need to supply the above password. After I
have authenticated as this user, I need to do some file manipulation using the system 'command'. Any
samples or links of reference would be helpful.

BTW - This is all being done on UNIX boxes running SunOS and HP-UX.

Regards,
DaveK
--
-
*******************************************
             David E. Kowal
        Vanguard Managed Solutions
     SCM Engineering/Administration
   575 West Street, Mansfield, MA 02048

Phone: (508) 261-5649 / Fax: (508) 261-4545
*******************************************



Sun, 14 Mar 2004 15:43:42 GMT  
 Net::FTP help for login & script
I may not have been clear on my question - I need to basically run remotely su <password> to
authenticate.

Quote:

> Hi,

> I've a question as how to do the following:

> 1) after successfully logging to a remote server using $ftp->login('username','password'), I then to
> to run a UNIX script (basically a version of su) where I need to supply the above password. After I
> have authenticated as this user, I need to do some file manipulation using the system 'command'. Any
> samples or links of reference would be helpful.

> BTW - This is all being done on UNIX boxes running SunOS and HP-UX.

> Regards,
> DaveK
> --
> -
> *******************************************
>              David E. Kowal
>         Vanguard Managed Solutions
>      SCM Engineering/Administration
>    575 West Street, Mansfield, MA 02048

> Phone: (508) 261-5649 / Fax: (508) 261-4545
> *******************************************

--
-
*******************************************
             David E. Kowal
        Vanguard Managed Solutions
     SCM Engineering/Administration
   575 West Street, Mansfield, MA 02048

Phone: (508) 261-5649 / Fax: (508) 261-4545
*******************************************


Sun, 14 Mar 2004 15:53:12 GMT  
 Net::FTP help for login & script
Quote:

>I may not have been clear on my question - I need to basically run remotely su <password> to
>authenticate.

[snip]

Erm, and what's your Net::FTP problem? And what has su got to do with
it?

confused,
--

split//,unpack('u*','L#`T&)QD5#0`#!!`#%1D)#08`#P05!!(3``$$"``#"0L&``('.
'"`P<!`````0$`'));$t=~s/(\d)(.)/$2x$1/eg;map{$t.=substr$t,$i,1,''while



Sun, 14 Mar 2004 16:35:59 GMT  
 Net::FTP help for login & script
Are you sure you want FTP and not Telnet?

-- Dave Tweed



Sun, 14 Mar 2004 18:06:37 GMT  
 Net::FTP help for login & script
On Wed, 26 Sep 2001 10:43:42 -0400,

[article reformatted to fit on a normal screen]

Quote:
> 1) after successfully logging to a remote server using
> $ftp->login('username','password'), I then to to run a UNIX script
> (basically a version of su) where I need to supply the above password.
> After I have authenticated as this user, I need to do some file
> manipulation using the system 'command'. Any samples or links of
> reference would be helpful.

You can't use the FTP protocol to remotely run programs (not without
non-standard help from the FTP server). I suspect you really want
Net::Telnet.

Martien
--
Martien Verbruggen              |
Interactive Media Division      | Make it idiot proof and someone will
Commercial Dynamics Pty. Ltd.   | make a better idiot.
NSW, Australia                  |



Mon, 15 Mar 2004 00:36:33 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. help with net::ftp->login

2. user / password login within Net::FTP

3. Net::FTP login problem

4. Net::FTP login problem

5. Help for Net::FTP and Net::SMTP

6. Net::Telnet -> mysql login help

7. Please Help With Net::Telnet Login Prompt

8. Net::FTP install & dialup setup

9. bug in Net::FTP ? (retr&abort)

10. Net::FTP & Large Files

11. Net::FTP & timeout - problem

12. net::ftp->login problem, ends my script HELP!

 

 
Powered by phpBB® Forum Software