Perl: Sending file from UNIX server to Windows server
I'm trying to write a Perl script where a file from a UNIX server box connects to a Windows server box and copies that file into the Window box.
The main problem I have right now is that whenever I try to connect to the Windows box, the connection is refused.
The error message that always pops up is:
cannot connect to host name: Net::FTP: connect: Connection refused at transfer.pl line 16.
My code is essentially this:
Any thoughts as to why this would happen (ex. firewall issues)?
For the host name, I use the domain name (both the short and full versions) and the actual IP address, but all of them have the same error message.
Many thanks!
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)
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
bbackupd
BBACKUPD(8) Box Backup BBACKUPD(8)NAME
bbackupd - Box Backup client daemon
SYNOPSIS
bbackupd [-DFkqvVT] [-c config-file] [-t tag]
DESCRIPTION
bbackupd runs on client computers in the background, finding new files to back up. When it is time for a backup, bbackupd will connect to
the server (bbstored) to upload the files.
A running bbackupd daemon can be controlled with the bbackupctl command, to make it shut down, reload its configuration, or start an
immediate backup.
bbackupd needs to be configured to tell it which files to back up, how often, and to which server (running bbstored). See the Client
Configuration page for more information. For this, you must write a configuration file. You must either place it in the default location,
or tell bbackupd where to find it.
You can check the default location with the -h option. The default on Unix systems is usually /etc/box/bbackupd.conf. On Windows systems,
it is bbackupd.conf in the same directory where bbackupd.exe is located. If bbackupd cannot find or read the configuration file, it will
log an error message and exit.
bbackupd usually writes log messages to the system logs, using the facility local5, which you can use to filter them to send them to a
separate file. It can also write them to the console, see options below. If bbackupd is not doing what you expect, please check the logs
first of all.
Options
-c config-file
Use the specified configuration file. If -c is omitted, the last argument is the configuration file. If none is specified, the default
is used (see above).
-D
Debugging mode. Do not fork into the background (do not run as a daemon). Not available on Windows.
-F
No-fork mode. Same as -D for bbackupd. Not available on Windows.
-k
Keep console open after fork, keep writing log messages to it. Not available on Windows.
-q
Run more quietly. Reduce verbosity level by one. Available levels are NOTHING, FATAL, ERROR, WARNING, NOTICE, INFO, TRACE, EVERYTHING.
Default level is NOTICE in non-debugging builds. Use once to drop to WARNING level, twice for ERROR level, four times for no logging at
all.
-v
Run more verbosely. Increase verbosity level by one. Use once to raise to INFO level, twice for TRACE level, three times for EVERYTHING
(currently the same as TRACE).
-V
Run at maximum verbosity (EVERYTHING level).
-t tag
Tag each console message with specified marker. Mainly useful in testing when running multiple daemons on the same console.
-T
Timestamp each line of console output.
FILES
/etc/box/bbackupd.conf
SEE ALSO bbackupd.conf(5), bbackupd-config(8), bbackupctl(8)AUTHORS
Ben Summers
Per Thomsen
James O'Gorman
Box Backup 0.11 10/28/2011 BBACKUPD(8)