FTP from Unix Shell script to Windows Shared folder ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting FTP from Unix Shell script to Windows Shared folder ?
# 1  
Old 11-24-2010
Java FTP from Unix Shell script to Windows Shared folder ?

Hi
Before Posting my query in this forum, I have gone through various similar postings to get some idea on ftp and how to do that from unix shell script to windows server.
My question is related to FTP'ing from Unix to windows shared folder

My basic question is
1. Is it possible to do FTP just by knowing the windows share path i.e. \\xyz\\folder1\folder2 (obviously with access)
2. Does this need user credential while doing ftp

I am not sure if I am asking genuine query, but curious.

Regards
JC
# 2  
Old 11-24-2010
Having windows share does not mean you have all the required ftp stuff on on windows...
Give it a try!
Most certainly if not installed, you will see after you unix prompt "connection refused" message
# 3  
Old 11-24-2010
Windows shares do not use the FTP protocol, but CIFS/SMB. You'll have to take a look at Samba client utils (esp. smbmount) if you want to copy files from/to such an share.
# 4  
Old 11-24-2010
Yes you are right...
I feel definately I should have windows machine IP or Windows machine name with FTP installed and user account to connect.

Regarding Samba client utils, I need to look into.

I will keep post if I get any solution, and also would love to listen if any alternate

Regards
JC
# 5  
Old 11-24-2010
Further to good advice from previous correspondents.

You cannot reference a Windows shared drive from a unix command unless the drive is mapped using extra software such as Samba.

Assuming Samba is not available.
You need to find out exactly where the shared drive was mapped from and set up an ftp account on that target computer with access to that directory.
Because share drives are subjective and real directories within real drives are objective this is actually much easier to deal with in a production environment.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

BatchScript/Unix shell Script to check folder in Windows server

Hi, It will be great help if any of them can provide or tell which scripting is possible to write for checking folder exists or not in Windows server from Unix/Windows machine. If folder doesn't exist then need to create the folder through script and copy the files. It is on very... (1 Reply)
Discussion started by: prakashchakra7
1 Replies

2. Shell Programming and Scripting

FTP from windows to unix server using unix shell script

Hi, Is it possible to ftp a huge zip file from windows to unix server using unix shell scripting? If so what command i need to use. thanks in advance. (1 Reply)
Discussion started by: Shri123
1 Replies

3. Shell Programming and Scripting

Need a script to fetch file from shared folder to unix box

Hi All, We have a requirement of pulling a file from shared folder to our unix box(Our application Servers). The Shared Folder and the servers are in teh same domain for eg UK domain For this purpose I got information like if in both source and destination ftp is enabled we can fetch the... (2 Replies)
Discussion started by: dhivya.enjoy
2 Replies

4. Shell Programming and Scripting

shell script to ftp the files from windows to unix server

Hi, I need to ftp some input files from windows to unix server.All the files will be saved in the C drive in my machine. Currently all these files are transferring manually to the unix server.I need to write a shell script which ftp the files from windows to unix box.When I searched in the... (10 Replies)
Discussion started by: kavithakuttyk
10 Replies

5. UNIX for Advanced & Expert Users

Shell script to ftp files from windows to unix

Hi , I need to ftp some input files from windows to unix server.All the files will be saved in the C drive in my machine.Currently all these files are transferring manually to the unix server.I need to write a shell script which ftp the files from windows to unix box.When I searched in the forum i... (1 Reply)
Discussion started by: kavithakuttyk
1 Replies

6. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

7. Shell Programming and Scripting

FTP from unix shell script to windows

Hi, I m trying to connect/establish FTP from unix shell script to my PC.Below the script i have written #!/bin/ksh ftp -v -n ddcappip01.com << "EOF" user Amit jason bye EOF ------------------------------ERROR-------------------------- but i m getting the below error for the... (4 Replies)
Discussion started by: ali560045
4 Replies

8. UNIX for Dummies Questions & Answers

create folder in windows from unix while FTP

Hi, I would like to know if it's possible to create a folder in a Windows Server while running a ftp script in Unix. The idea is to create a script that searches for different files in folders, and when the file is found, take the path of that file and create it to Windows and ftp the file to... (0 Replies)
Discussion started by: Metalero de Oz
0 Replies

9. Shell Programming and Scripting

FTP Unix Box to Windows Shell Script

Hello All, Could someone help me out with this? I want to incorporate this into an existing script so the output of a SAS job can be ftp'd from our UNIX box to a directory on a drive in Windows environment. Can this be done with no extra third party software? We currently use Putty for copy... (2 Replies)
Discussion started by: Jose Miguel
2 Replies

10. Windows & DOS: Issues & Discussions

mounting a directory to a windows 2000 shared folder

until recently I've been using the following command successfully: mount -t smbfs -o username=my_user_name,password=password /home/temp/ //oldserver/openexchange To connect to a Win2000 shared folder called openexchange on a machine called //oldserver. But as from today, I've been getting... (2 Replies)
Discussion started by: cw1972
2 Replies
Login or Register to Ask a Question