Solved

lcd & mput

Posted on 2010-09-07
9
807 Views
Last Modified: 2013-11-09
can you help me understand what exactly is happening in the foll script?

thanks
---------------------
hash
bin
prompt
lcd C:\DB
mput *
bye
0
Comment
Question by:anushahanna
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 14

Accepted Solution

by:
sentner earned 125 total points
ID: 33621355
That's an ftp script... It's putting all the files from the current directory that it's run from onto the FTP server in the directory c:\DB.
0
 
LVL 43

Assisted Solution

by:Steve Knight
Steve Knight earned 250 total points
ID: 33621382
Hash - displays a # sign as data is transferred
bin - puts it in binary mode so it transfers file as is without fiddling with end of lines from CR LF to LF etc.
prompt - toggles prompt, so will turn it off so it won't prompt durint multiple copies
lcd c:\db - change the local PC default directory to C:\db
mput * - copies all the files from the c:\db directory to the default folder on the ftp site (use cd /whatever to change the path there)
bye - stop the connection.

Steve
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33621394
so it is directly sending from this box to the destination box?
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 6

Author Comment

by:anushahanna
ID: 33621414
thanks for the detailed line by line explanation.

so by the line 'bye' the file should be already in destination, right?


0
 
LVL 2

Assisted Solution

by:bureshd
bureshd earned 125 total points
ID: 33621435
It is sending from wherever that script resides, so yes.
0
 
LVL 43

Assisted Solution

by:Steve Knight
Steve Knight earned 250 total points
ID: 33621444
Yes, correct.
0
 
LVL 2

Expert Comment

by:bureshd
ID: 33621449
The file will be there by the time it hits "bye". It won't start that command until it finishes the command just prior.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33621455
Thanks very much.
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 33621517
Thanks, BTW when you give two people the same points the second answer gets the "assisted" as it doesn't know that  an answer is technically wrong .... "It's putting all the files onto the FTP server in the DEFAULT directory from the LOCAL directory c:\DB"

Anyway as long as you know what it does now!

Steve
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question