FTP Automation Windows <> Unix <> Remote


 
Thread Tools Search this Thread
Special Forums Cybersecurity FTP Automation Windows <> Unix <> Remote
# 1  
Old 06-21-2006
Question FTP Automation Windows <> Unix <> Remote

Hi All,
I am a newbie to unix and scripting. I need to do the following job:
1. Create a batch file in windows that will call a script in a remote unix box.
2. The script now ftp files from the Remote windows machine and get them back to the local windows.

Actually, I have written the script in Perl using Net::Ftp and it is running fine among unix boxes. Now, I am supposed to make a batch file of the same so that it will run on scheduled time of a day and get the required files.


Could anybody please help me out.

Regards,
Ankur

PS: Is there any way, through which I can FTP automatically from Windows to windows, but the unix box is always there in between the transactions. I mean it is always there as an intermediate for the FTP job in my case, if done manually.

Last edited by Ankur; 06-22-2006 at 02:35 AM..
# 2  
Old 06-23-2006
Why can't this perl script be used automatically? Why does it need to be a .bat ?
# 3  
Old 06-23-2006
Error Further Clarifications

Actually what I need is a desktop shortcut to an application which when executed get the required files from the specified remote windows machine.

The entire scenario is:
First the required file gets ftped from the remote windows machine to the remote unix box and from the remote unix box to the local windows machine.

I have written a script that can ftp from remote unix to another remote unix box, but can't access a remote windows machine.

This is the sequence I need:
1. Run the batch file in local windows machine that will change the directory to current working directory and calls the perl script in the remote unix box.
2. The remote box script now ftps the required files from the remote windows machine to the remote unix box.
3. The files now get ftped to the current working directory of the local windows machines.

If there is any way in which the calling can be simplified, I have no issues on that. But the scenario need not be changed, the sequence or flow can be.

Please help. It's urgent.
# 4  
Old 07-20-2006
netcat could probably help u out with this. im not too terribly familiar with it, but this sounds like something it can handle... as far as having a windows machine execute commands on a nix machine and vice versa.

-R3d
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to run UNIX commands on remote machine from windows?

Hi All, I am working in support and we are planning to automate a system to reduce the direct manual intervention to core system. Please find the below details. 1. we have a web application that runs on Windows Platform. 2. From web application, we need to connect to remote Unix machine.... (6 Replies)
Discussion started by: Balaji K
6 Replies

2. UNIX for Dummies Questions & Answers

Remote FTP Backup -Tar archive+ encrypt+ split to a remote ftp

I have a huge directoy(200+ gb) for backup. I want upload the tar file(split files) simultaneous to a remote ftp. (pipeline, stdout, stdin etc.) I don't want write a data to local hdd. I have a ssd hdd. thanks. this code doesn't work.( yes i know the problem is split command!) tar cvzf -... (8 Replies)
Discussion started by: tara123
8 Replies

3. Shell Programming and Scripting

FTP using script not working (for transfering file from a remote unix server to windows PC.)

hi, Im using the following code for FTP #!/usr/bin/ksh ftp -v -n "10.29.45.11" << cmd user "mahesva" "mahesva123" get rtl.tar quit cmd Below is the log when i run the above code ********************************** Connected to 10.29.45.11. 220 (vsFTPd 2.0.1) 530 Please login with USER... (20 Replies)
Discussion started by: dll_fpga
20 Replies

4. Shell Programming and Scripting

Remote renaming of a unix file via ftp

Hi all, i'm just after some help regarding a batch script. I'm wanting to create a windows batch script which will push a file from my pc to a unix (AIX) system via ftp. i have this part working fine but as the file i'm sending already exists i want the script to also take a sideways copy of... (6 Replies)
Discussion started by: forefather1977
6 Replies

5. 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

6. Shell Programming and Scripting

UNIX script to FTP file from UNIX server to windows

Hi, I am new to this subject.....Can someone please help me out with the script... unix usernm "sdhftst" unix pwd "chsd13" windows usernm "dfghtst" windows pwd "chsd13" path..../xxx/xxxxx/xxxxxx/xxxxxxx please can u get me a script...its only one file to get ftp. Thanks... (2 Replies)
Discussion started by: himakiran9
2 Replies

7. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

Hi Friends, I have this script for ftping files from AIX server to local windows xp. #!/bin/sh HOST='localsystem.net' USER='myid_onlocal' PASSWD='mypwd_onlocal' FILE='file.txt' ##This is a file on server(AIX) ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies

8. UNIX for Advanced & Expert Users

Working with remote Unix files systems from Windows

I am currently using Samba to access remote Unix file systems from Windows. However, it is slow, and I presume insecure in the sense that file contents are transmitted unencrypted. I also wonder if passwords are transmitted in plain text in this protocol or not. For these reasons I am looking for... (2 Replies)
Discussion started by: Bilge
2 Replies

9. Shell Programming and Scripting

ftp from windows to unix using a perl script on unix machine

i need to ftp a file from windows to a unix machine by executing a sript(perl/shell/php) from that unix machine.i can also use HTML and javascript to build forms. (3 Replies)
Discussion started by: raksha.s
3 Replies

10. UNIX for Advanced & Expert Users

Identify a remote machine as windows or unix

Hi, I have a IP address of the target machine.Is there is any way to find out whether it is a unix box or windows box without logging into it?. Regs Anand (5 Replies)
Discussion started by: u449064
5 Replies
Login or Register to Ask a Question