FTP to a specific folder (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: FTP to a specific folder
|
|
|
|
FTP to a specific folder 4 Years, 8 Months ago
|
|
|
I'm not sure you can do that with the OS/400 FTP command. I've never <BR>
done it, but I think you need to write an FTP script (records in a <BR>
physical file XYZ) that will do a series of steps. There's more somewhere <BR>
on this site and others about that. The file would probably look <BR>
something like this, if you were transferring a streamfile from folder <BR>
/MyLocalDir on the IFS root: <p>FTP FileServer <p>UserID <p>Password <p>lcd /MyLocalDir <p>cd /DirOnFileServer/SubDir/Etc <p>put MyFile <p>quit <p>It may also need subcommands like NAMEFMT 1, or ASCII. <BR>
I think you need to something like OVRDBF STDIN TOFILE(xyz) so the script will be used instead of manual input. <BR>
If you start FTP to somewhere, you should be able to use the Help command after signing on (or bypassing it by pressing Enter a couple of times). It'll describe the different FTP subcommands. <p>Others will know much more about this than me.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
FTP to a specific folder 4 Years, 8 Months ago
|
|
|
Here are a couple of links to discussions that may help <p><a href="/mc?
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
@.f00932b/0">Catalin ENE "Batch Ftp From AS/400 to Unix" 2/12/00 10:15am</a> <p><a href="/mc?
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
@.ef8f115/0">Tom Daly "FTP between AS/400's using script?" 2/21/01 9:54am</a>
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
FTP to a specific folder 4 Years, 8 Months ago
|
Karma: 0
|
|
Glen, <BR>
Surely your network people jest. Commencing an FTP session is pretty much the same on any platform, including the iSeries. The command is simply "FTP myaddress" where myaddress is either a bunch of IP numbers or an alias. Other info (such as folder name) is supplied only after logon is complete.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
FTP to a specific folder 4 Years, 8 Months ago
|
Karma: 0
|
|
Our network people tell me that I need to enter the equiviant of 'ftp: 111.222.333.444/folder' when I ftp to the server from the iSeries. <p>How can I get this to work? I'm not exactly sure why I need to qualify the folder on the FTP command but they say I must. <p>Help Please, I need to complete this project in the next day or so.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
FTP to a specific folder 4 Years, 8 Months ago
|
Karma: 0
|
|
I wish I did jest. I finally convinced them to give the user id inquiry access to the root directory. <p>I believe the problem is this. The server is a web server. The directory is a Virtual Directory. They wanted me to FTP directly to the folder by qualifying the folder. According to them in the Windows environment there is an FTP colon that allows them to qualify to the folder. <p>As for everybody else, thank you for your input. The scripting I had in place by using an older command from IBM's redbooks (FTPBATCH). It was trying to FTP to the qualified folder that I was wondering about. <p>Thanks
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|