07-13-2007
Selecting record format and record length for CMS.
By default, all files transferred using FTP will have variable record format. If you are transferring a file to CMS which must/ought to be in a fixed record format or which should have a specific record length, use the site command of FTP on CMS.
Before GETing files to CMS using FTP on CMS, enter:
site fixrecfm nnnn
Before PUTing files to CMS using FTP on a PC or another local host, enter:
quote site fixrecfm nnnn
in both cases, nnnn is the record length you want the transferred file to have. The quote command sends the specified command to the remote FTP for execution. The command site varrecfm restores the default variable record format. (Include quote if necessary.)
From:
http://www.uic.edu/depts/accc/network/ftp/vftp.html
Sandra
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i do have a problem with the transaction of pdf-files from a server to another. there was a guy who told me about this command wich i should build in my ftp.put()-method in java. the command called: about quote site chmod 0 filename..
i think its something about filerights but does someone know... (1 Reply)
Discussion started by: calmacroi
1 Replies
2. Windows & DOS: Issues & Discussions
I have a small problem, there is one Win98 PC on our network, and I would like to map the FTP server that we have as one of the Win98's machine's local drives. I am by no means a Windows expert, instead my area is *NIX. The webserver is just a regualar webserver, within the LAN. I tried... (18 Replies)
Discussion started by: cerberusofhate
18 Replies
3. UNIX for Advanced & Expert Users
Hi,
I'm after a bit of advice for the best way to collect files from an ftp server via a unix process. The main issue here is the frequency, the job needs to check for files every minute or so between 8am and 8pm and pull them down to the box if there is anything there.
Originally the... (6 Replies)
Discussion started by: Peejay
6 Replies
4. Solaris
Using FTP on Solaris 5.8, I am not able to use the SITE command. It says Invalid command. I am trying to change the permission of the transmitted files to -rw-rw-rw on the destination machine. Any help would be greatly appreciated. (2 Replies)
Discussion started by: gauravsachan
2 Replies
5. Shell Programming and Scripting
Hi,
I am writting a shell script which will pull a list files (mentioned in one file 1.txt) from external FTP site (for ex: ftp://abcd.efghijk.com/). The 1.txt is in my local unix directory. I have username and password to connect the external FTP site.
Also before I pull the files, I need... (0 Replies)
Discussion started by: spatra
0 Replies
6. Shell Programming and Scripting
I'm new to scripting. I'm trying to write a script to download files from ftp site, the following is the script and the message i get after running the script. no files were downloaded :(
Thanks advance!
script:
#!/usr/bin/ksh
DAY=`date --date="-1 days" +%y%m%d`
ftp -v -n "ftp.address" <<... (5 Replies)
Discussion started by: tiff-matt
5 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
My problem is simple. I would like to download the contents of a directory on an ftp site. I can access the site through windows, but there are many files and it would be too tedious to click and download each file. Thus, I am trying to use
scp -r... (5 Replies)
Discussion started by: cpabrego
5 Replies
8. Shell Programming and Scripting
Hi there, I'm new to shell scripting and need some help if possible?
I need to create a shell script (.sh) to run as a cron job on an ubuntu linux server to connect to an external sftp sites directory using credentials (which I have) and then download to our internal ftp server and then copy... (3 Replies)
Discussion started by: ghath
3 Replies
9. SCO
Hello dear Users,
I am for the first time in this forum. I come from Germany. Please excuse my bad englisch. My OS is SCO open Server Release 5.
I have a problem whith FTP and the command "site exec"
if I use the command "ftp> site chmod 777 /tmp/startkpf.sc
200 CHMOD command successful. ... (8 Replies)
Discussion started by: fla5do
8 Replies
10. Shell Programming and Scripting
I have a job that connects to FTP site, rename, get, delete a file and then process it. The renaming is done in consideration of this is one file name into which data is being accumulated many times within 24 hour cycle.
This is what happens now:
ftp -i $FTPHOST <<-EOF
ren... (3 Replies)
Discussion started by: migurus
3 Replies