+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2002
    Location
    NY,NY,US
    Posts
    4

    .netrc file size error ! ! !

    Hi,

    I have a Korn Shell creating a dynamic .netrc file for performing a FTP job.

    The .netrc is sometimes around 20K bytes. While tyring to perform the FTP it gives me the following message :

    4K macro buffer exceeded

    How can I solve this problem ?

    Thanks

    -HN


  2. #2
    Join Date
    May 2000
    Posts
    583
    Create .netrc:

    .netrc
    ---
    machine xxx.xxx.xxx.xxx login user password passwd
    ---

    Create script file, for example:

    script
    ---
    #! /bin/sh

    ftp xxx.xxx.xxx.xxx <<EOF 2>&1
    prompt off
    binary

    #FTP commands go here

    bye
    EOF
    ---

    Run script.

    [This message has been edited by Mulder (edited 03-26-2002).]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts