The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
"find command" to find the files in the current directories but not in the "subdir" swamymns Shell Programming and Scripting 9 07-22-2008 08:23 AM
Development Releases: Linux Mint 4.0 Beta "Fluxbox", 4.0 Alpha "Debian" iBot UNIX and Linux RSS News 0 01-04-2008 12:00 PM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-19-2007 10:52 PM
Unix "at" / "Cron" Command New Problem...Need help Mohanraj UNIX for Dummies Questions & Answers 3 01-26-2006 05:08 PM
"SCRIPT" (recording session) from ShellScripts mohanprabu Shell Programming and Scripting 3 11-27-2004 06:36 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 12-26-2001
Registered User
 

Join Date: Dec 2001
Posts: 2
Help! "Put" command from telnet session

Probably the lamest question of them all I'm a web geek and I need to push a file to the server. Something is botched with my FTP account and everyone is off for the holidays, so I'm trying to put the file from a telnet session.

The trouble is, I haven't the foggiest idea about the proper syntax for the "put" command. How do I designate the path to the file on my local machine? I've already navigated to the directory on the server where the file needs to go.

I'm also pushing from the Mac OS X, if that is useful.

Thank you so much!

Melissa
Forum Sponsor
  #2  
Old 12-26-2001
Jimbo
Guest
 

Posts: n/a
Melissa, I am not a Mac user, but ftp is pretty standard. On a PC, I would:

change to the directory where my local file is
ftp <myserver>
(reply to username and password prompts)
cd <the remote source directory>
ascii (if it is an ascii file)
put myfile
bye

Optionally, instead of first changing to the local directory, you can get into ftp and do a "local change directory":

lcd <my local directory>

Good luck.
  #3  
Old 12-26-2001
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Well, ftp is meant to transfer files while telnet itself really isn't. You can see if you can use "kermit" or "zmodem" to transfer the file. Depending on the telnet client, you may be able to cut and paste into a text file (if that's what it is)...

Hope that helps at least a little.
  #4  
Old 12-27-2001
Registered User
 

Join Date: Jul 2001
Location: Malaysia
Posts: 20
u can use mput as well, like this:

mput myfile*

it will put myfile.out, myfile.txt and so on together

remember to enter "prompt"
  #5  
Old 12-27-2001
Registered User
 

Join Date: Dec 2001
Location: Philadelphia
Posts: 3
Put with Telnet

Anyone can correct me if I'm wrong but if all you have is Telnet, you don't have any real method by which to transfer a file. That's what ftp is for. If the file is small and you are using an emulator that will allow cut and past, maybe you can cut it from your machine, telnet to the remote machine and paste it there using a text editor.
  #6  
Old 12-27-2001
Registered User
 

Join Date: Dec 2001
Posts: 2
Thanks everyone I got hold of the sys admin and he corrected my access so I was able to FTP file over with no worries.

Whew!
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0