Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transfer data using telnet 3

Status
Not open for further replies.

oaklandar

Technical User
Feb 12, 2004
246
US
I have to telnet to a Solaris 7 server from my Windows 2000 workstation and need to transfer data from my C drive on my Windows workstation to a directory on the Unix server. Is this possible and if so what are the commands?
 
Okay I run 'FTP' in the prompt and it gives me a window with the 'FTP' prompt. What do I do next to get the file from my Windows Workstation to the Unix Server?
 
Or the Solaris server may running samba.

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
You can't transfer files using telnet, and Clairvoyant1332 was correct, FTP or a secure version of it will. If it is a small amount of data, you can create a file on the UNIX telnet session and copy and paste the data there.



[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
We dont have samba.

I now logged into the Unix server using the 'FTP' and at my Unix home diretory. Now what are the commands to get the Windows file into this unix directory?
 
a few key commands:

change remote directory -- cd {dir}
change local directory -- lcd {dir}
send file -- put {filename}
receive file -- get {filename}
for text mode -- asc
for binary mode -- bin

check the help file for more commands
 
my friend:

ftp ip_or_name_server
user: <userid>
password: <password>

cd /path/to/files

bin <if binary file>

put file.ext <to put a file in the server>
get file.ext <to get a file from the server>

bye <to get out>


This is basic!
cheers.
 
so it would be:

put C:\file.txt

I tried this and it didnt work where I placed a test file on the C drive called "file.txt
 
Try this:
[tt]lcd /
put file.txt[/tt]
or either
[tt]put /lcd[/tt]

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Tried this:

lcd /
put file.txt

and it says "file.txt: File not found"

Please advise.
 
How did you launch your ftp session ?
What is your current drive and current directory ?

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Used the run command prompt from start menu and typed in 'ftp' then i typed in 'open myservername' at the ftp prompt and put in my name and password which put me in the server in my home directory.
 
So, try to open a console window typing [tt]cmd[/tt] in the run command prompt.
Then try something like this:[tt]
C:
cd dir file.txt[/tt]
If you can see your file, then the ftp session should be ok:[tt]
ftp
open yourservername
yourname yourpassword
put file.txt
bye
exit[/tt]

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
You must also have write privlages to the directory where you are putting the file.



[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Thanks it now works. Now I am going to transfer zip files which has .mdb files in it. Do I set it to the "bin" or "ascii" to do this?
 
Obviously bin

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Also my big file is going over as bigfile.zip and I will do this using bin as you suggested.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top