INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

FTP from unix to vax machine

FTP from unix to vax machine

(OP)
Hello,

First of all, I am TOTALLY new to vax/vms....

I want to automate a ftp from unix to vax and get a files from the vax box. When I do this manually, it works fine, but when I try to do it in a script it fails.

Here is my script (on unix):
------------------------------------
HOST=rmhs2

ftp -n $HOST << EOF
user username password
cd RMS$ROOT:[TRACE]
dir a*.log
by
EOF
------------------------------------
I returns with the following error:
"Failed to set default directory to RMS:[TRACE].
error in device name or inappropriate device type for operation
file not found"

It seems as if the problem is the cd to the directory, but as I said I can do a "cd RMS$ROOT:[TRACE]" when I do a manual ftp.

If anyone if wondering why I am doing a ftp, it is because I do not have the skills to write a script on vms to check the log file for errors, hence I have to ftp the file and run my script on unix to check the file.

Any help on this will be greatly appreciated.
Thanks,
Jaco

RE: FTP from unix to vax machine


Check the login.com of the username that the script is logging into the VAX under to see if the logical RMS$ROOT is defined and how it is defined. It looks like this logical is not being translated properly.

RE: FTP from unix to vax machine

You may also want to check SYLOGIN.COM.... often symbols or logicals that are defined during interactive login are excluded when the login is in BATCH or OTHER mode...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close