Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

FTP scripting

  • 03-07-2000 01:36PM
    #1
    Registered Users, Registered Users 2 Posts: 16,415 ✭✭✭✭


    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,415 ✭✭✭✭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,415 ✭✭✭✭Trojan


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

    Muppet! smile.gif

    Al.


Advertisement