Sponsored Content
Top Forums Shell Programming and Scripting Help with a script to transfer files from Solaris to windows Post 302979457 by hicksd8 on Monday 15th of August 2016 06:00:06 AM
Old 08-15-2016
The first thing to do is to transfer a file using ftp manually from the command line. If that doesn't work then you've got no chance trying to script it.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

shell script to transfer files from Unix to Windows

I need to write a shell script to transfer files from Unix server to windows machine. This script will be scheduled on scheduler to run at specified intervals #!/bin/ksh ftp -n alaska <<End-Of-Session user sss01 sample cd /home/sss01 lcd D:/sample mget *.txt bye when I executed the... (15 Replies)
Discussion started by: knag
15 Replies

2. UNIX for Advanced & Expert Users

How to transfer files from Unix to Windows.

Hi There is a requirement for me to transfer files from Unix to windows in an automation process of unix. Please let me know is it posibble to shell scripting this? Could you help me in scripting it? Regards Venugopal (2 Replies)
Discussion started by: venu_eie
2 Replies

3. Solaris

Transfer files from Solaris to windows

Please let me know a efficient way to transfer files from a solaris to a windows machine. Total size of data is 800GB. (3 Replies)
Discussion started by: pingmeback
3 Replies

4. Shell Programming and Scripting

Unable to transfer files from Windows 2000 Server to Sun Solaris..

Dear Friends, I need to transfer few files from a Windows 2000 server to Sun Solaris system, connected in the same network. This copy should be done as a batch job without asking for password to be entered every time. How to make this possible ??? At present I am using cygwin in my laptop... (4 Replies)
Discussion started by: ks_reddy
4 Replies

5. HP-UX

Transfer Files from Windows to HP-UX

I need to transfer files from Windows to Hp-UX box with out any software(Filezilla ...., Fsecure file transfer) Is it possible to transfer using command prompt ? (6 Replies)
Discussion started by: girija
6 Replies

6. Solaris

File transfer from Windows to Solaris.

I have a file on my desktop which is windows based. I make a telnet session with a Solaris machine that too with root access by using putty. I want to transfer a file there on Solaris machine. Is there a mean to transfer this file on solaris machine. If now can it be known by using telnet... (6 Replies)
Discussion started by: nixhead
6 Replies

7. Shell Programming and Scripting

Shell Script to transfer files from unix to windows

I have to transfer a file from unix to windows through Shell Script. I am using the below script, but it is not working. Please help. Please note --- I have to transfer the file from unix to windows. Not from windows to unix. I mean I don't have to use batch script.Only through unix shell script.... (1 Reply)
Discussion started by: vsachan
1 Replies

8. UNIX for Dummies Questions & Answers

transfer windows files to linix

I'm very new to linix (using puppy) and need to transfer some files on the same computer from windows to linix. Please use small easy words (2 Replies)
Discussion started by: bugzy
2 Replies

9. Solaris

Transfer files from windows to solaris with winscp (file protocol:SFTP)

Hello, I have a couple of zip files to be copied from my local drive to a folder in solaris10 residing in a VM ware. i am using WINSCP, I tried to get hold of the solaris hostname or ip using ifconfig -a , hostname|nslookup etc. when i create a new session in WINSCP using that IP and port... (6 Replies)
Discussion started by: herbich1985
6 Replies

10. Shell Programming and Scripting

Script to transfer files from Solaris to windows

Hi All Please can you help, I´ve wrote the following script on a solaris 10 server to transfer files to a windows machine. #!/usr/bin/sh cd /moneta_polled01/download HOST=10.100.4.72 USER=user1 PASSWD=V7stop /usr/bin/ftp -v $HOST <<EOF user $USER $PASSWD cd tmp binary put... (7 Replies)
Discussion started by: fretagi
7 Replies
netrc(5)							File Formats Manual							  netrc(5)

Name
       netrc - file used by ftp auto-login procedure (.netrc)

Description
       The  file  contains  frequently needed options for transfers.  The file resides in the owner's home directory on the machine from which the
       owner initiates the file transfer.  If the file includes passwords, set permissions on the file with so that only the owner has	read  per-
       mission.

       The file uses the following format:

       o    Each line of the file defines options for a specific machine.

       o    A line in the file can be either a machine line or a default line.

       o    The default line must be the first line in the file if it is present.

       o    Fields in a default line appear in this order: default, default machine name.

       o    Fields in a machine line appear in this order: machine, machine name, options.

       o    Fields on each line are separated by spaces or tabs.

       The following are valid options for a machine line:

       -------------------------------------------------------------------
       Option	  Parameter	 Default      Description
       -------------------------------------------------------------------
       machine	  machine name	 none	      Identifies a remote
					      machine name
       login	  name		 local name   Identifies user on the
					      remote machine
       password   password	 none	      Password for remote
					      login name
       account	  password	 none	      Additional account password
       macdef	  macro name	 none	      Defines a macro like the
					      ftp macdef command
       -------------------------------------------------------------------

Example
       This is an example of a file:
       machine cactus login smith
       machine nic.ddn.mil login anonymous password anonymous
       machine palm.stateu.edu login smith password ualonerwelcome
       macdef byenow
       quit

       macdef ls
       dir

       The first line allows to log Smith into the machine after prompting for and receiving Smith's password, as shown in this example:
       $ ftp cactus
       Connected to cactus.tech.edu
       FTP server ready.
       Password required for SMITH.
       User logged in
       ftp>

       The second line of the file allows the user to perform an anonymous transfer after typing this command:
       $ ftp nic.ddn.mil
       See for a description of anonymous FTP transfers.

       The  third  line allows Smith to log into the machine Smith will not be prompted for a password because this machine line includes password
       information.  Because the file includes password information, the file must not have read permission set for world and group.

       The lines are macro definitions, which operate much like shell aliases.	A blank line must follow each macro definition to signal  the  end
       of the macro.  The first macro definition defines as an alias for the command.

See Also
       ftp(1c)

																	  netrc(5)
All times are GMT -4. The time now is 05:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy