Help! "Put" command from telnet session


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help! "Put" command from telnet session
# 1  
Old 12-26-2001
Help! "Put" command from telnet session

Probably the lamest question of them all Smilie 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
# 2  
Old 12-26-2001
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.
Jimbo
# 3  
Old 12-27-2001
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
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
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. Smilie
# 6  
Old 12-27-2001
Thanks everyone Smilie I got hold of the sys admin and he corrected my access so I was able to FTP file over with no worries.

Whew!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

2. UNIX for Dummies Questions & Answers

How to put "top" command in crontob?

Hi, how to put "top" command in crontab through script in suse linux. Below script is working fine, but it is not working when sheduled in crontab script scheduled in cron: health.sh --------- #! /bin/ksh top |head -5 >output.txt Thanks Suresh (3 Replies)
Discussion started by: suresh3566
3 Replies

3. Cybersecurity

"authentication failure" then "session opened". Why?

Ssh connections using shared public keys issue “authentication failure” messages, then succeed with “session opened”. I have found a few other threads with similar issue, but no solutions offered. :wall: How can I eliminate the failure messages? Environment: $ uname -a Linux... (0 Replies)
Discussion started by: KennyCason
0 Replies

4. UNIX for Dummies Questions & Answers

Unix "look" Command "File too large" Error Message

I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this: $ look "string" "/home/patrick/filename.txt" However, this gives me the following message: "look: /home/patrick/filename.txt: File too large" So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies

5. Linux

Session "hijacking" - Recover lost session

Hi Guys, Is there a way to recover a lost session? I was working in a server and that lost the connection, now, I have a new session but all the previous processes that I was running, like scripts, etc, are still running. Is there a way to bring them to my session? Best regards, Marco. (4 Replies)
Discussion started by: ocramas
4 Replies

6. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

7. UNIX for Dummies Questions & Answers

Command Character size limit in the "sh" and "bourne" shell

Hi!!.. I would like to know what is maximum character size for a command in the "sh" or "bourne" shell? Thanks in advance.. Roshan. (1 Reply)
Discussion started by: Roshan1286
1 Replies

8. Shell Programming and Scripting

Need help on use of "cmd" command in net::Telnet module in PERL

in "cmd" command i want to copy the ouput of the command excuted to a particular file in a directory. How to do this..?? Ex : $telnet->cmd(String => 'allip:acl=a1;',Prompt => '/</'); i want to copy o/p of the command "allip:acl=a1;" in a log file in a particular directory. Plz suggest.. (1 Reply)
Discussion started by: sudhakaryadav
1 Replies

9. Windows & DOS: Issues & Discussions

Need Help on "waitfor" command in net::Telnet Module in PERL

Hi, Can anybody help me in writing command "waitfor" for string "C:\WINNT\Profiles\mfcf0508>" while using net::Telnet module. I tried the below format : $telnet->waitfor('/"C\:\WINNT\Profiles\mfcf0508>".*$/i'); Getting error as : pattern match timed-out Plz help me (3 Replies)
Discussion started by: sudhakaryadav
3 Replies

10. Shell Programming and Scripting

Need Help on "waitfor" command in net::Telnet Module

Hi, Can anybody help me in writing command "waitfor" for string "C:\WINNT\Profiles\mfcf0508>" while using net::Telnet module. I tried the below format : $telnet->waitfor('/"C\:\WINNT\Profiles\mfcf0508>".*$/i'); Getting error as : pattern match timed-out Plz help me (1 Reply)
Discussion started by: sudhakaryadav
1 Replies
Login or Register to Ask a Question