The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Can Linux pick up Unix Hard Drive? zahid.amin UNIX for Advanced & Expert Users 4 07-26-2007 03:20 AM
The best partitioning schem for a 250GB Sata hard drive & a 75GB SCSI hard drive sirbijan Filesystems, Disks and Memory 0 04-05-2006 11:19 AM
Formatting hard drive from Unix to Windows howarddtp UNIX for Advanced & Expert Users 4 07-03-2005 12:32 PM
Wiping UNIX Hard Drive rocky123 UNIX for Dummies Questions & Answers 10 10-10-2002 05:42 AM
seperate hard drive for unix & x windows jeffersno1 UNIX for Dummies Questions & Answers 4 09-04-2001 08:28 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-01-2007
Registered User
 

Join Date: Sep 2007
Posts: 23
ftp from hard drive to unix server

i want to ftp a flat file from my local harddrive to the unix server box. Can anybody send me the command. Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 11-01-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,294
From a PC -> unix server?
You have to have an account on the unix server - username password
Code:
ftp <unix server nodename>  username password
ftp> cd /path/to/unix/directory
ftp> put myfile
ftp> bye
No account? use the username=anonymous password=your emailid
if the server allows anonymous ftp.
Reply With Quote
  #3  
Old 11-01-2007
Registered User
 

Join Date: Sep 2007
Posts: 23
thank you . I will try it
Reply With Quote
  #4  
Old 11-01-2007
Registered User
 

Join Date: Sep 2007
Posts: 23
but , I am trying to ftp from my c drive. So, will this work. Can you take a example of a dummy file name and write the command please.
Thank you
Reply With Quote
  #5  
Old 11-01-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Code:
ftp hostname
user: foo
password: bar
put c:\my\windows\file target-file-on-unix
quit
alternatively use "cd" to switch to the correct directy in a windows command prompt prior to the upload.

Code:
ftp hostname
user: foo
password: bar
put file
quit
Typically it will end up in the home directory of 'foo'.
Reply With Quote
  #6  
Old 11-01-2007
Registered User
 

Join Date: Sep 2007
Posts: 23
but for PUT FILE, do we have to give the file location like c:\filename ?
Reply With Quote
  #7  
Old 11-01-2007
Registered User
 

Join Date: Sep 2007
Posts: 23
Thanks. I got it .
Thanks a lot again
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:36 PM.


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