The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Shared Home directory between Unix servers raghav288 Filesystems, Disks and Memory 0 02-22-2008 01:45 AM
Copy files from the file to another directory shreethik SUN Solaris 4 12-20-2007 01:26 PM
copy file to a directory by sequence fooky UNIX for Dummies Questions & Answers 4 11-24-2007 07:40 PM
Copy file from unix box to other FORUM UNIX for Dummies Questions & Answers 1 01-25-2006 07:29 AM
How to copy unix file to floppy BillyT UNIX for Dummies Questions & Answers 1 01-23-2001 10:28 PM

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

Join Date: Oct 2006
Posts: 7
copy file from UNIX to shared directory

Hi,
I want to copy a file from unix machine to a shared windows directory.
i tried using the ftp command but i was able to transfer the file only to my local directory.
Is there any way we can transfer/copy the files from unix to windows shared directory..........
Please help.
Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 11-02-2006
djtrippin's Avatar
Registered User
 

Join Date: Sep 2001
Location: michigan
Posts: 79
You can connect to Windows shares via Samba.

http://us3.samba.org/samba/
Reply With Quote
  #3  
Old 11-03-2006
Registered User
 

Join Date: Aug 2006
Posts: 22
sireesha15,

You can also get an ftp client like ssh, putty or reflection. Just google for the download links to these.
Reply With Quote
  #4  
Old 11-03-2006
Registered User
 

Join Date: Nov 2006
Posts: 39
Quote:
Originally Posted by hnhegde
sireesha15,

You can also get an ftp client like ssh, putty or reflection. Just google for the download links to these.
SSH is not an ftp client. It is only a secure shell rather then using telnet.
Reply With Quote
  #5  
Old 11-03-2006
Registered User
 

Join Date: Aug 2006
Posts: 22
lazytech,

You are right. SSH is a secure shell. But if you download clients like ssh or reflection, you also get a nice ftp window to just drag and drop files to/from server.
Reply With Quote
  #6  
Old 11-13-2006
Registered User
 

Join Date: Oct 2006
Posts: 7
Hi i tried using the following scrpit to copy a file from UNIX(i'm using Vi editor)
to windows

echo "Enter the unix filename path /home/file >";
read unix_dir;
echo "Enter the Windows Folder < Give the Full Path - C:\File>";
read windows_dir;
echo "Enter the File Name(s) to Be FTPed ";
read file_name;
(
echo "open <ip address>"
echo "lcd $unix_dir"
echo "cd $windows_dir"
echo "mput $file_name"
echo "bye"
) > filetransfer.sh
sh /usr/bin/ftp -scv < filetransfer.sh


I'm getting the following error
/usr/bin/ftp: syntax error at line 1: `(' unexpected

Please help me .regarding this error......
Thanks...
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 07:51 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