Sponsored Content
Top Forums Shell Programming and Scripting How to transfer files from unix machine to local machine using shell script? Post 302545433 by vidhyaS on Monday 8th of August 2011 10:17:36 AM
Old 08-08-2011
How to transfer files from unix machine to local machine using shell script?

Hi All..

Am new to Unix!!

Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp).

And also i have to transfer the input file from the local directory to Unix machine (Server)


Any help from you is appreciated!! Thanks in Advance!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

copy files from local drive to telnet unix machine.

i want to run some solaris executable program (text file). i telnet to solaris machine. the text file is on the net drive h: or my local drive on windows system. how can i copy the text file from local drive in windows to remote machine in solaris system? thanks. (4 Replies)
Discussion started by: gary
4 Replies

2. Shell Programming and Scripting

Creation and Transfer of TAR file from one machine to another Using UNIX script

Hi, I want to create unix script such that it should run on machine A, it should run TAR commands on machine B and copy that TAR to machine C. Is it possible? Thanks Rahul (2 Replies)
Discussion started by: rahuljadhav
2 Replies

3. Shell Programming and Scripting

Executing shell script on local machine

Hi guys, I need to run and test some shell script. At work, i work on ksh. I don't have any such software/client installed at home and i cannot always connect to work from home. At home i have Windows Vista. Is there a free and reliable software where i can run my ksh script? Please let me... (4 Replies)
Discussion started by: jakSun8
4 Replies

4. Red Hat

To find the LATEST file from a dir on REMOTE machine and SCP to local machine?

Hi All, URGENT - Please help me form a scipt for this: I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server) I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
Discussion started by: me_ub
3 Replies

5. Shell Programming and Scripting

shell script to copy files frm a linux machine to a windows machine using SCP

I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine. for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Discussion started by: nithin6034
3 Replies

6. UNIX for Advanced & Expert Users

FTP While transfering files to local machine to remote machine

Hi Am using unix Ksh Am getting the problem while transferring zero size files through the script . When i transfer zero size files from local machine to remote machine manually i can able to do it . My question its beause of zero size files am not able to transfer through script ? or its... (2 Replies)
Discussion started by: Venkatesh1
2 Replies

7. Shell Programming and Scripting

To run a local shell script in a remote machine by passing arguments to the local shell script

I need to run a local shell script on a remote machine. I am able to achieve that by executing the command > ssh -qtt user@host < test.sh However, when I try to pass arguments to test.sh it fails. Any pointers would be appreciated. (7 Replies)
Discussion started by: Sree10
7 Replies

8. UNIX for Dummies Questions & Answers

Copy files from Linux server local windows machine using a shell script

Hello, I need to create a shell script which will copy files - which are created on particular date and starting with particular name - to local windows XP machine. Is this possible.? Currently it is being done manually using winscp (1 Reply)
Discussion started by: NarayanaPrakash
1 Replies

9. Red Hat

iptables applied in local machine, can't ssh remote machine after chain changed to DROP

I want to SSH to 192.168.1.15 Server from my machine, my ip was 192.168.1.99 Source Destination was UP, with IP 192.168.1.15. This is LAN Network there are 30 Machine's Connected to the network and working fine, I'm Playing around the local machine's because I need to apply the same rules in... (2 Replies)
Discussion started by: babinlonston
2 Replies

10. Shell Programming and Scripting

Help with fetching the data from remote machine from my jumpbox(local machine)

Team, Presently i am running a script from my local box(i.e jumpbox) to all the remote machines.Basically fetching basic queries like pwd,mkdir,touch etc and i am able to successfully fetch it from my local machine.But when i want to check certain database related queries like the dbstat... (20 Replies)
Discussion started by: whizkidash
20 Replies
UPCLIENT(8)						       AFS Command Reference						       UPCLIENT(8)

NAME
upclient - Initializes the client portion of the Update Server SYNOPSIS
upclient <hostname> [-crypt] [-clear] [-t <retry time>] [-verbose]* <dir>+ [-help] DESCRIPTION
The upclient command initializes the client portion of the Update Server. In the conventional configuration, its binary file is located in the /usr/lib/openafs directory on a file server machine. The upclient command is not normally issued at the command shell prompt but rather placed into a file server machine's /etc/openafs/BosConfig file with the bos create command. If it is ever issued at the command shell prompt, the issuer must be logged onto a database server machine as the local superuser "root". The upclient process periodically checks that all files in each local directory named by the dir argument match the files in the corresponding directory on the source machine named by the hostname argument. If a file does not match, the upclient process requests the source copy from the upserver process running on the source machine. By default, the upclient process requests that the upserver process encrypt the data before transferring it. Use the -clear flag to request unencrypted transfer if appropriate. (The -crypt flag explicitly sets the default.) In the conventional configuration, separate instances of the upclient process request data from the /usr/lib/openafs and /etc/openafs/server directories, except on machines for which the system control machine is also the binary distribution machine for the machine's system type. The conventional names for the separate instances are "upclientbin" and "upclientetc" respectively. The upclient and upserver processes always mutually authenticate, whether or not the data they pass is encrypted; they use the key with the highest key version number in the /etc/openafs/server/KeyFile file to construct a server ticket for mutual authentication. This command does not use the syntax conventions of the AFS command suites. Provide the command name and all option names in full. CAUTIONS
Do not use the Update Server to distribute the contents of the /etc/openafs/server directory using the -clear option. The contents of this directory are sensitive. OPTIONS
<hostname> Names either the cell's system control machine (if the requested directory is /etc/openafs/server), or the binary distribution machine for the local machine's CPU and operating system type (if the requested directory is /usr/lib/openafs). -crypt Requests the transfer of data from the upserver process in encrypted form. This is the default; this flag just sets the default explicitly. Do not use this flag with the -clear flag. -clear Requests transfer of data from the upserver process in unencrypted form. Provide this flag or the -crypt flag, but not both. -t <retry time> Specifies how often to check for changes in each specified directory, as a number of seconds. If this argument is omitted, the default is 300 (5 minutes). This argument determines the maximum amount of time it takes for a change made on the source machine to propagate to this machine. -verbose* Writes a trace of the upclient process's operations on the standard output stream, which usually corresponds to the machine console. Provide one, two, or three instances of the flag; each additional instance generates increasingly numerous and detailed messages. <dir>+ Names each directory to check for modified files. The conventional choices are the following: o /usr/lib/openafs, in which case the recommended name for the process (assigned with the -instance argument to the bos create command) is "upclientbin". The hostname is the binary distribution machine for the local machine's system type. You may wish to use the -clear flag for the /usr/lib/openafs directory, since binaries are not particularly sensitive and encrypting them takes system resources. o /etc/openafs/server, in which case the recommended name for the process (assigned with the -instance argument to the bos create command) is "upclientetc". The hostname is the cell's system control machine. Use the -crypt flag for the /etc/openafs/server directory, since it contains the KeyFile file and other data vital to cell security. -help Prints the online help for this command. All other valid options are ignored. EXAMPLES
The following bos create command creates an "upclientbin" process on the machine "fs4.abc.com" that refers to the machine "fs1.abc.com" as the source for the /usr/lib/openafs directory (thus "fs1.abc.com" is the binary distribution machine for machines of "fs4.abc.com"'s type). The files in the /usr/lib/openafs directory are distributed every 120 seconds. The command requests transfer in unencrypted form. % bos create -server fs4.abc.com -instance upclientbin -type simple -cmd "/usr/lib/openafs/upclient fs1.abc.com -clear -t 120 /usr/lib/openafs" PRIVILEGE REQUIRED
The issuer must be logged in as the superuser "root" on a file server machine to issue the command at a command shell prompt. It is conventional instead to create and start the process by issuing the bos create command. SEE ALSO
BosConfig(5), bos_create(8), upserver(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 UPCLIENT(8)
All times are GMT -4. The time now is 11:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy