Solved

lcd & mput

Posted on 2010-09-07
9
815 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
This article will show, step by step, how to integrate R code into a R Sweave document
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

696 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