Hi Guys
i'm logged on to my unix machine thru telnet. I have created a korn shell script there and i want to ftp this to my windows directory on my local comp. Is there a way to do this.
GET A DOS BOX
CD TO RELEVANT DIR
AT LOCAL PROMPT TYPE
C:\ftp <machine name>
User (mymachine): username
Password required for username:
Password: username..
CD TO YOUR SCRIPT DIR
LIST DIR TO CONFIRM
Ls
TYPE THE FOLLOWING AT THE FTP PROMPT TO GET SINGLE FILE
TYPE MGET FOR MULTI FILES
ftp>bin (for binary mode)
ftp>hash (prints a hash whilst transferring)
ftp>get scriptname
WHEN TRANSFER IS COMPLETE TYPE BYE TO EXIT
THE FILE(S) ARE NOW ON YOUR LOCAL MACHINE
ftp>bye
Easy, instead of using the "get" command
use the "put" command. To ftp multi files
use mput.
To get to any dir in UNIX or DOS just use the cd command.
I hope this explains things.
To transfer the file from dos to unix follow sirrom's excellent directions but instead of "get scriptname", enter "put scriptname".
To get to the dos directory e.g. c:\lweng\files, to get the file from or put the file to, enter:
In ftp> if I am under the directory /u04/ on unix since I typed cd /u04, and I want go back to Dos directory, I typed cd c: and it won't take it. How can I go back to dos directory under ftp> and check which file I have? Thanks.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.