Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

FTP scripting

  • 03-07-2000 1:36pm
    #1
    Registered Users, Registered Users 2 Posts: 16,413 ✭✭✭✭


    Hi guys,

    Has anyone got info on implementing automated FTP scripts? Environment is NT I'm afraid... :/

    Cheers,
    Al.


Comments

  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    Do a search on this board, someone already asked the exact same question.


  • Registered Users, Registered Users 2 Posts: 16,413 ✭✭✭✭Trojan


    Hmm, soz didn't see it.

    I got some more info, if anyone's interested in automating something from command line here ya go:

    FTP script: it's basically just a list of commands passed with the -s:file.scr option to ftp.exe (.com?):

    PutRPC.scr
    open <machine>
    <username_here>
    <password_here>
    
    quote site charset(english)
    
    bell on
    hash on
    status
    
    quote cwd 'PSD.DUB.AMD.IND.OBJECT'
    
    binary
    
    put rpcsrv.out RPCSRVD
    
    bye
    

    That's called in the batch file which builds it.....
    date /t
    time /t
    
    rem BUILD:
    
    call makeclean.bat
    nmake -a -f makefile > bin\compile.log
    call compile1.bat
    nmake -a -f makefile.link > bin\link.log
    
    rem UPLOAD:
    
    cd bin
    ftp -s :putrpc.scr
    

    And for bonus points, you can automated the whole thing with "at":
    at 04:00 /every:2,4,6,8,10,12,14,16,18,20,22,24,26,28,30 "build.bat"
    

    That does a compile, link and upload at 4am every even-numbered day... have fun...

    Regards,
    Alastair.




    [This message has been edited by Trojan (edited 04-07-2000).]


  • Closed Accounts Posts: 12 nickb


    I ve got 10 bits of info
    pcANYWHERE
    pcANYWHERE
    pcANYWHERE
    pcANYWHERE
    pcANYWHERE
    pcANYWHERE
    pcANYWHERE
    pcANYWHERE
    pcANYWHERE
    pcANYWHERE


  • Registered Users, Registered Users 2 Posts: 16,413 ✭✭✭✭Trojan


    And that lets you autobuild a cross-compiled file for the mainframe ... how exactly?

    Muppet! smile.gif

    Al.


Advertisement