The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Security
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


Security Anything involving computer security goes here.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
view remote linux desktop on my windows machine new2ss UNIX for Advanced & Expert Users 4 06-07-2007 02:06 AM
Test automation tool for UNIX ?? unmanju Shell Programming and Scripting 3 03-12-2007 02:59 AM
Unix integrated Automation ? Jim hudson Chat with iBot - Our RSS Robot Girl 5 09-25-2006 08:05 AM
Identify a remote machine as windows or unix u449064 UNIX for Advanced & Expert Users 5 08-05-2006 09:03 AM
automation of Informatica jobs using Unix kamesh83 UNIX for Advanced & Expert Users 1 06-23-2006 09:49 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-21-2006
Registered User
 

Join Date: Jun 2006
Location: Delhi, India
Posts: 6
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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-21-2006 at 10:35 PM.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-22-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Why can't this perl script be used automatically? Why does it need to be a .bat ?
Reply With Quote
  #3 (permalink)  
Old 06-22-2006
Registered User
 

Join Date: Jun 2006
Location: Delhi, India
Posts: 6
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Exclamation 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.
Reply With Quote
  #4 (permalink)  
Old 07-20-2006
Registered User
 

Join Date: Jul 2006
Posts: 20
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 03:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102