'put' files from unix to VMS via batch ftp.

'put' files from unix to VMS via batch ftp.

Post by Dayang Li » Tue, 19 Nov 1996 04:00:00



Hi,

I am doing a script file which will ftp to an OpenVMS machine (from a
Solaris 2.3 machine) running Multinet TCP/IP and 'put' a file into the VMS
machine.  My script file looks something like this...

#!bin/csh
ftp vmsserver << end
nmap [$1,$2].[$2,asc]
put file.asc
end

When I run this file, instead of getting file.asc, I got .;1 on the VMS
machine.  However, if I run these commands interactively, I'm able to get
the filename that I want.

Any ideas?

TIA.

Regards,
Dayang Lily
Motorola Malaysia.

 
 
 

'put' files from unix to VMS via batch ftp.

Post by Cal Duniga » Tue, 19 Nov 1996 04:00:00



Quote:> I am doing a script file which will ftp to an OpenVMS machine (from a
> Solaris 2.3 machine) running Multinet TCP/IP and 'put' a file into the VMS
> machine.  My script file looks something like this...

> #!bin/csh
> ftp vmsserver << end
> nmap [$1,$2].[$2,asc]
> put f>
> When I run this file, instead of getting file.asc, I got .;1 on the VMS
> machine.  However, if I run these commands interactively, I'm able to get
> the filename that I want.

You omitted the leading / in the C shell pathname. Try changing that
first line to
    #!/bin/sh
and see if that works. It's wisest to avoid scripting in the C shell.

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    Cal Dunigan                       My opinions *ARE* the company's

    Consulting, Modeling, Training
//////////////////////////////////////////////////////////////////////

 
 
 

'put' files from unix to VMS via batch ftp.

Post by Adam Lovic » Fri, 22 Nov 1996 04:00:00




Quote:

>#!bin/csh
>ftp vmsserver << end
>nmap [$1,$2].[$2,asc]
>put file.asc
>end

>When I run this file, instead of getting file.asc, I got .;1 on the VMS
>machine.  However, if I run these commands interactively, I'm able to get
>the filename that I want.

You might want to try quoting or escaping the square brackets. There is
a chance that csh is attempting to expand them.
--
Adam Lovick

 
 
 

1. in ftp, put put *`date '+%Y%m%d'` doesn't work

In ftp I want to put a file from that ends in the current yyyymmdd.  eg.
filename_20000119 would be a the filename I want to put as it has the
current date (when I wrote this message) Using the following doesn't
work, any ideas?

put *_`date '+%Y%m%d'`

2. driver for trident 8400 w/9430 dgi chipset

3. modems under delay not dropping DTR on 3003

4. writing to a raw disk fails

5. FTP 'put' file permissions

6. Anti-virus for AIX 4.3.2 on RS/6000?

7. Slow FTP 'gets', Fast 'puts'???

8. FTP: logging things other than 'get' and 'put'

9. FTP file transfer slow with 'put' command

10. Ftp 'put' files are mode 666

11. Shell to ftp 'put' a file?