Simple FTP question


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Simple FTP question
# 1  
Old 04-28-2005
Simple FTP question

Hi Folks,

I think this is very simple...

I am able to connect to the http server that stores my web site, using the Unix ftp command.

But there is one simple problem:

my local folder where I store my files is at:

~/sites/

And, everytime I type on the ftp prompt:

get nameOfFile.html

The file is downloaded to:

~/nameOfFile.html

instead of

~/sites/nameOfFile.html

Question:

Is there a command I can use to specify the correct destination?

Thank you for your kind attention.

Bernardo Höhl
Rio de Janeiro - Brazil
My Box:

MacIntosh - BSD Unix
System OS 10.3.9
# 2  
Old 04-28-2005
You can do "cd ~/Sites" before starting ftp. When you get a file, it is stored into the local working directory.

Or, once you're in ftp, you can do "lcd ~/Sites" to set the local working directory.
# 3  
Old 04-28-2005
I have been trying to work this out for weeks, and the answer is so simple.

Thank you Steve.



Bernardo
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Syslog.conf: looking for a simple answer on a simple question

Cheers! In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not? To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
Discussion started by: dr1zzt3r
6 Replies

2. Shell Programming and Scripting

Very simple question 2

Hey , another question is below: Administrator@fe038390aa60482 ~/Frank/20130509 $ c=`ls -ls` Administrator@fe038390aa60482 ~/Frank/20130509 $ echo $c Total 4 1 -rwxr--r-- 1 Administrator None 482 May 9 11:07 do_increment 1 -rwxr --r-- 1 Administrator None 272 May 9 11:32 do_square 1... (2 Replies)
Discussion started by: franksunnn
2 Replies

3. Shell Programming and Scripting

Very simple question

Hi, guys, I'm a new comer here. I'm studying Unix Shell and I met a problem confusing me a lot. Here it is : script 1: #!/bin/sh # scriptname : do_increment increment(){ sum=`expr $1 + 1` return $sum # Return the value of sum to the script. } echo -n "The sum is " increment $1 # Call... (2 Replies)
Discussion started by: franksunnn
2 Replies

4. Shell Programming and Scripting

Help Simple FTP Script Here Syntax

I have a list of IP address and want to be assess whether FTP is allowing FTP access. I don't want to use lousy NT shell, but cannot get the syntax down on this. ftphosts.txt is a simple list of IP adresses. I want to iterate through the IPS and do a simple ftp IPadress user ftp password... (15 Replies)
Discussion started by: gdotoli
15 Replies

5. Solaris

Simple FTP Question

I'm a newbie and have hopefully a simple question. I have serveral users with FTP accounts but I want to have a single user that only has access to a single directory in /htdocs. How do I modify ftpdpro.conf so that the single user when they FTP in goes directly to the directory instead of... (1 Reply)
Discussion started by: stryker43
1 Replies

6. Shell Programming and Scripting

Simple script uploading *.dem files to an ftp

Hello.. i want to create a simple script that's upload all the *.dem files from one directory to ftp and then delete them. Any help? (3 Replies)
Discussion started by: TuXaKoS
3 Replies

7. Shell Programming and Scripting

Simple Question

If given some output such as: "I'm having a senior moment" How do you print the last six characters to the screen? I'm thinking with awk or sed but can't remember how. (1 Reply)
Discussion started by: stepnkev
1 Replies

8. Programming

Simple C question... Hopefully it's simple

Hello. I'm a complete newbie to C programming. I have a C program that wasn't written by me where I need to write some wrappers around it to automate and make it easier for a client to use. The problem is that the program accepts standard input to control the program... I'm hoping to find a simple... (6 Replies)
Discussion started by: Xeed
6 Replies

9. Shell Programming and Scripting

simple bash script to ftp?

Hi all has anyone got a code snippet of how i can ftp a file automatically by running a simple bash script. I have 4 things IP address xx.xxx.xx.xx username=satnam domain = app.sample.ftp password= satnam_password Im not sure how to pull these all together to ftp a file? any ideas? (1 Reply)
Discussion started by: satnamx
1 Replies

10. UNIX for Dummies Questions & Answers

Ok simple question for simple knowledge...

Ok what is BSD exactly? I know its a type of open source but what is it exactly? (1 Reply)
Discussion started by: Corrail
1 Replies
Login or Register to Ask a Question