Sponsored Content
Top Forums Shell Programming and Scripting Perl: Sending file from UNIX server to Windows server Post 302471454 by deindorfer on Friday 12th of November 2010 09:47:28 PM
Old 11-12-2010
Unix - Windows FTP Transfer Perl

Some Suggestions.

1. Turn the "Debug" Param on:
Code:
Debug => 1

2. Set it to "2" if that shows more output ( it does with Net::SSH::Perl ) e.g.
Code:
Debug => 2

3. Check if you can login to the win machine from the unix machine on the command line
Code:
  you@unixbox: ftp ftp.winbox.net

4. if not telnet to port 21 ( the FTP command channel )
Code:
  you@unixbox: telnet ftp.winbox.net 21

5. if not see if anything is getting through to the windows box.
Code:
 you@unixbox: /usr/bin/nmap -T5 ftp.winbox.net -p 0-1024

( if you don't have nmap installed install it with apt-get install nmap or yum install nmap. )

Let us know what happened. Good luck.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP script for sending a file from one unix directory to another unix server director

Hi, My local server is :/usr/abcd/ Remote server is :/Usr/host/test/ I want to send files from local unix directory(All files starting with O_999) to remote host unix directory. Can any body give me the Unix Shell script to do this. One more doubt: Shall we need to change the file... (1 Reply)
Discussion started by: raja_1234
1 Replies

2. UNIX for Dummies Questions & Answers

Script runs fine on UNIX Server...Not through MSK Tool kit on Windows Server

I have a .sh script which was running fine on all the UNIX Servers (AIX, SunSolaris). The script requires two mandatory parameters and many optional parameters. Now at a different client place who are on a Windows Server, when I try to execute the script through MKS Toolkit, there are couple of... (5 Replies)
Discussion started by: madhunk
5 Replies

3. Shell Programming and Scripting

FTPing files from unix server to windows server

Hi, Below is the script which ftps the file from unix server and putting in a different directory(but on unix server) How can i ftp the files from unix server and to place in a secure location on windows server? what changes needs to be done to the below script? How can this be... (1 Reply)
Discussion started by: venkatesht
1 Replies

4. Shell Programming and Scripting

Perl and sending file to server

Hi, I am trying to write some test code for bigger project where my perl script will send file over to server. This is the current SERVER and CLIENT code I have so far. When I type "hi" from client I get hello back from server and like wise I send send command I get respond back the problem... (1 Reply)
Discussion started by: Dabheeruz
1 Replies

5. Shell Programming and Scripting

Unix shell script to Copy files from one Windows server to another Windows server.

Can anybody please help me on how to code for the below requirement: I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies

6. Programming

Problem with Perl script after moving from a Windows/Apache Server to a UNIX server.

I have a Perl script that worked fine before moving it to justhost.com. It was on a Windows/Apache server. Just host is using UNIX. Other Perl scripts on other sites that were also moved work fine so I know Perl is functioning. The script is called cwrmail.pl and is located in my cgi-bin. When I... (9 Replies)
Discussion started by: BigBobbyB
9 Replies

7. Shell Programming and Scripting

Needed SFTP script from windows to UNIX server and from UNIX to windows server(reverse SFTP)

hi guys, i need a script to sftp the file from windows to unix server ....(before that i have to check whether the file exists in the windows server or not and again i have to reverse sftp the files from unix to windows server..... regards, Vasa Saikumar. (13 Replies)
Discussion started by: hemanthsaikumar
13 Replies

8. Solaris

FTP-ing files from Windows server to UNIX server

I need to transfer files from a Windows server to the Unix server and have to run some shell script on it to get the required output. Is it possible to transfer files from Windows server to unix server through any shell script? If so can you please help me with the details. Thanks in... (8 Replies)
Discussion started by: ssk250
8 Replies

9. Shell Programming and Scripting

Script to communicate from UNIX server to windows server

I have two servers linux and windows and i want to compare files which are in unix server that to windows server and find out which are missing that means i have 50 files with 6000 records in each file on linux server and i want to verify weather these 50 files are present in windows server... (5 Replies)
Discussion started by: sagar_1986
5 Replies

10. Shell Programming and Scripting

Do I require remote login access to a windows server to transfer files from a UNIX server

Hi All I need to transfer a file from a UNIX server to a windows server. I saw that it is possible to do this using scp command by looking at the forum listed below: ... (2 Replies)
Discussion started by: vx04
2 Replies
BPM(1)							    BSD General Commands Manual 						    BPM(1)

NAME
bpm -- menu-based binary package manager SYNOPSIS
bpm [-hnVv] [-b baseURL] [-m machine] [-r release] [-w seconds] DESCRIPTION
The bpm command is used to locate and install binary packages from any reachable URL. The following command-line options are supported: -b baseURL Specify a base URL from which to download binary packages. The default URL is ftp://ftp.NetBSD.org/pub/pkgsrc/packages. -h Print a help message and then exit. -m machine Use machine as the machine architecture to be used, instead of that returned by uname(1). -n Don't actually execute the commands to add the package. -r release Use release as the operating system release to be used, instead of that returned by uname(1). -V Print version number and exit. -v Turn on verbose output. -w seconds The number of seconds to wait after displaying an error message and returning to normal menu operations. bpm provides a menu-based binary package manager for NetBSD. bpm first connects to the URL using ftp(1), and displays a list of categories for which binary packages exist. If no categories are displayed, it could be that the machine architecture or operating system release string have been wrongly interpreted, and that it will be necessary to override this values by means of the command line options. Within a category, a list of packages will be displayed, and by selecting one using the number assigned to it, the package will be downloaded automat- ically, and installed, using the pkg_add(1) utility. It is also possible to change the category currently being examined, and to quit from the utility, simply by selecting the appropriate choices on the menu. ENVIRONMENT
The environment variables which govern the behavior of ftp(1) and pkg_add(1) are valid for bpm. SEE ALSO
ftp(1), pkg_add(1), uname(1) AUTHORS
The bpm utility was written by Alistair Crooks <agc@NetBSD.org>. BSD
August 3, 2007 BSD
All times are GMT -4. The time now is 10:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy