Results 1 to 8 of 8

Thread: FTP all files in PC Directory to IFS

  1. #1
    Driver of cars, eater of food jamief's Avatar
    Join Date
    Jan 2004
    Location
    Belvidere, IL - United States of America
    Age
    49
    Posts
    9,416
    Rep Power
    12598

    Arrow FTP all files in PC Directory to IFS

    Ftp an entire PC folder to the IFS

    Create the directory on the IFS (under ROOT/Home)
    Give everyone access (*RWX)

    Code:
    MD DIR('/home/upload') DTAAUT(*RWX) OBJAUT(*ALL)
    Find you folder on your PC to "upload"
    I selected C:\Documents and Settings\jamie\Favorites

    Then click on start

    From the pop up select Run...

    Then you get your Run window....

    Type cmd (this is XP by the way)

    Now you get your DOS comman window

    type:

    FTP 192.168.1.1
    The window will return that you are connected to your Iseries
    and prompt you for your userid.

    Type it in hit <ENTER>
    then enter your password (hit <ENTER>)

    If you did a DIR now in the DOS window you would
    get a listing of all the "stuff" in QGPL
    but we want our home directory to be on the IFS.

    To do this we must change our name format to 1

    Code:
    quote site namefmt 1
    get message back saying using name format 1

    Code:
    cd "/home/upload"
    Then change local directory (the PC directory where your upload data is stored)

    Code:
    lcd C:\Documents and Settings\jamie\Favorites
    then type (get message interactive mode off)
    Code:
    prompt
    lastly put all the files in PC directory C:\Documents and Settings\jamie\Favorites
    to IFS folder /home/upload

    Code:
    mput *.*

    Thats it......
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

  2. # 666
    Circuit advertisement
    Join Date
    Aug 1965
    Location
    Yakutsk, Russia
    Age
    21
    Posts
    1,000,000
     

  3. #2
    Code400 Newbie
    Join Date
    Jan 2006
    Location
    sweden
    Posts
    9
    Rep Power
    0

    Re: FTP all files in PC Directory to IFS

    Hi there!

    I tried to follow this example but I got the error 501 Unknown extension in database file name... I tried to ftp a single file called hello.java...

    Thnx in advance

  4. #3
    Driver of cars, eater of food jamief's Avatar
    Join Date
    Jan 2004
    Location
    Belvidere, IL - United States of America
    Age
    49
    Posts
    9,416
    Rep Power
    12598

    Re: FTP all files in PC Directory to IFS

    You would get an error like that if you were going to QDLS instead
    of ROOT... The rules for QDLS are very strict.

    Please post the file and I will test from here.

    thanks
    Jamie
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

  5. #4
    Code400 Newbie
    Join Date
    Jan 2006
    Location
    sweden
    Posts
    9
    Rep Power
    0

    Re: FTP all files in PC Directory to IFS

    oh yes! my bad..
    it´s working now

    Thanx!!

  6. #5
    Code400 Newbie
    Join Date
    Mar 2011
    Location
    philadelphia, pa, usa
    Posts
    8
    Rep Power
    0

    Re: FTP all files in PC Directory to IFS

    C:\Documents and Settings\MIKEY.WORKGROUP>ftp 192.0.0.100
    Connected to 192.0.0.100.
    220-QTCP at CENTURY.CENTURYCABINETRY.COM.
    220 Connection will close if idle more than 5 minutes.
    User (192.0.0.100none)): mikey
    331 Enter password.
    Password:
    230 MIKEY logged on.
    ftp> quote site namefmt 1
    250 Now using naming format "1".
    ftp> cd "/home/upload"
    550-Specified directory does not exist or cannot be accessed.

    I get that far. Do I have to create a directory manually on IFS?
    Thanks

  7. #6
    Experienced Forum Member dhanuxp's Avatar
    Join Date
    Mar 2008
    Location
    Sri Lanka
    Posts
    633
    Rep Power
    2468

    Re: FTP all files in PC Directory to IFS

    Quote Originally Posted by mikeyank View Post
    Do I have to create a directory manually on IFS?
    Thanks
    Yes of course.. !!

  8. #7
    Sr. Product Specialist FaStOnE's Avatar
    Join Date
    Nov 2005
    Location
    Phoenix, AZ
    Age
    51
    Posts
    2,611
    Rep Power
    3984

    Re: FTP all files in PC Directory to IFS

    ftp>User MikeY
    ftp><password>
    ftp>quote site namefmt 1
    ftp>md /home/upload
    ftp>cd /home/upload
    ftp>put <myfile> <tofile>
    ftp>quit


    Note: the MD /home/upload command will error if the directory already exists .. so, this just makes sure it's available before you execute your PUT command.
    -Rick

    _____________________________

    Need a Managed File Transfer Solution -OR- iSeries Encryption?
    GoAnywhere and Crypto Complete by Linoma Software


  9. #8
    Programmer Mercury's Avatar
    Join Date
    Feb 2007
    Location
    Paris, France
    Posts
    1,831
    Rep Power
    5417

    Re: FTP all files in PC Directory to IFS

    Create it manually or type
    Code:
    quote  "MKD /home/upload"
    using FTP
    Philippe

  10. # 666
    Circuit advertisement
    Join Date
    Aug 1965
    Location
    Yakutsk, Russia
    Posts
    1,000,000
     

Facebook Comments


Similar Threads

  1. files in QSPL
    By mark_a_hall in forum Iseries System administration
    Replies: 4
    Last Post: July 30th, 2009, 03:44 PM
  2. Display contents of IFS directory on web page
    By littlepd in forum CGI Examples
    Replies: 2
    Last Post: February 16th, 2007, 11:10 PM
  3. display all tables in IFS directory
    By jamief in forum Tips for the Iseries/AS400
    Replies: 25
    Last Post: February 16th, 2007, 03:24 PM
  4. Deleting old files in directory
    By dcutaia in forum ANY THING GOES
    Replies: 6
    Last Post: June 30th, 2005, 10:25 AM
  5. Replies: 8
    Last Post: June 17th, 2005, 02:44 PM

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
  •