FTP automation to sunsolve

2007-12-25 10:30:00

I have received over 45 replies to my inquiry: these fall into either

3 categories..

        1)35 people flaming me because of improper usage of the internet

        2)3 people who sent me the same program that I submitted.

        3)5 people who recommended expect/perl/etc..

        4)2 RTFM'ng me//

For people in item #1:

Well, unfortunately, I seem to have 100 individual sites of my own

we are an ISP, and host machines for people. Since most people are

neurotic about the internet.. They have us turn off ALL r* programs,

so no rdist no telnet/ftp into the boxes and no RCP... so this is the only

way that I can get the file for the machine...

For those in item #3:

THis is a great option, unfortunately, the time to install expect

and/or perl on all these systems would take up too much man hours.

ANSWER:

What I eventually did, was just point the ftp script to sunsite.unc.edu

which has the same uptodate file that sun has...

Sorry about ranting ans flaming, I should have been clearer from the

beginning.

Thanks as always for your help,

        -Rick Niziak

ORIGINAL QUESTION:

I have a somewhat unique issue, I want to write a script that I

can place on ~100 machines that every month, the script does an

interactive ftp session to sunsolve1.sun.com. THe script will send

user and password info and download the patchdiag-xref file. The

script will then run patchdiag and mail me a report.

The problem is the following:

        when I do a interactive ftp to any site other than Sun

        with the folowing script:

        ftp -ni <<EOT

        open ftp_host

        user login_name password

        hash

        binary

        get file

        bye

        It works fine, unfortunately, Sun adds in the extra "Account:"

        input line.. which I can't figure out how to get working...

Comments

Got something to say?

You must be logged in to post a comment.