Sponsored Content
Full Discussion: scp automation
Top Forums Shell Programming and Scripting scp automation Post 302614809 by 47shailesh on Wednesday 28th of March 2012 11:07:27 PM
Old 03-29-2012
for doing that you need to place public key authentication between two machines.
1. Generate private/public key pair
2. Copy the public keys into .ssh of server from which you want to copy files.
check this post for details:
https://www.unix.com/unix-advanced-ex...-password.html
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help in automation...

Hi All, I need to run the same command on many servers. I am using ssh for the same. Following is the script that I am using to fire the same command on multiple machines. #!/bin/bash # Linux/UNIX box with ssh key based login #SERVERS="iqmevrick,iqmango" # SSH User name USR="root" #... (1 Reply)
Discussion started by: nua7
1 Replies

2. Shell Programming and Scripting

Help need for automation of su command

Hi All! I need to automate the su command using expect script.Suppose I login as a user A , I need to change the user to oracle using the su oracle command and execute the command "sqlplus -ver". I tried writing a expect script for the same , but can't figure out the reason it is not working. ... (1 Reply)
Discussion started by: nua7
1 Replies

3. UNIX for Dummies Questions & Answers

scp automation

my source folder is :/tmp/util of server : pyxis-as2 and target folder is :/apps/prodapp/util/ of server : pyxis-db2 i am trying to do a copy from source to target through SCP is there any way that I can kick shell script from pyxis-as2 once any single file get loaded into /tmp/util ... (5 Replies)
Discussion started by: u263066
5 Replies

4. Shell Programming and Scripting

UNIX automation

Hello People, I have an outstanding issue with me I have 5 files at location /usr/abc called 1.DE 1.TXT 2.DE 2.TXT 3.DE 3.TXT 4.DE 4.TXT 5.Fe.ok My work involves few manual process like transfer 1.DE 1.TXT and 5.Fe.ok to /usr/dob location and run one script(for example -... (42 Replies)
Discussion started by: j_panky
42 Replies

5. Shell Programming and Scripting

Scripting for automation

Hi, I would like to know about a automated script which would collect data on a regular day to day basis at a particular time and stores it in a defined path for business analysis. Any help on this is highly appreciable!! Thanks Sara (6 Replies)
Discussion started by: sara23
6 Replies

6. Shell Programming and Scripting

Tar automation

Hi, i'm new in shell programming, i would like to archive automatically all my log files at the end of each month. My files have this format : 2011.07.log1 2011.07.log2 ... 2011.08.log1 2011.08.log2 ... etc I would like to have an idea about how to do this. Thanks. (2 Replies)
Discussion started by: thedriver
2 Replies

7. UNIX for Advanced & Expert Users

Need help in automation

Hi, I wanted to automate the scp command where i do not want to enter the password each time. So thought of using expect command. Script is executing without any issues but files are not copied to remote server. Can any one help me? Below is my shell script.. #!/bin/ksh ... (6 Replies)
Discussion started by: balasubramani04
6 Replies

8. Shell Programming and Scripting

Small automation

Frequently we need to stop or start services on Linux systems. For exmaple : To start or stop vsftpd daemon # /etc/init.d/vsftpd start or # /etc/init.d/vsftpd stop Following script will check the vsftpd service and if it is running, it will be stopped or vice-versa. # cat... (5 Replies)
Discussion started by: snjksh
5 Replies

9. UNIX for Dummies Questions & Answers

CUPs automation

A little background information: We are a company that uses Sharp MFP devices for everyone to print on. We have a lot of MAC BYOD devices. All printing is done through a product called PaperCut which is ran on a Windows 2008 R2 server. Sharp charges our company for each print job done in... (1 Reply)
Discussion started by: jdmorecraft
1 Replies

10. Shell Programming and Scripting

scp Automation

Hi, I have a requirement to automate SCP command. I have to write the scp command in server1 to copy file from server2 and paste it in server3. I will be passing server2 and server3 as variables. Pls suggest. (1 Reply)
Discussion started by: usrrenny
1 Replies
sigreturn(2)							System Calls Manual						      sigreturn(2)

NAME
sigreturn - Returns from signal SYNOPSIS
#include <signal.h> int sigreturn( struct sigcontext *scp) ; PARAMETERS
Points to a sigcontext structure whose members contain the processor state to be restored. The contents of the sigcontext structure should have been previously obtained by entry to a signal handler or by the setjmp() or sigsetjmp() function. DESCRIPTION
The sigreturn() function restores the processor state of the calling process from a sigcontext structure. The sigcontext structure contains the state of all application-visible registers as well as the signal mask. The specific members of the sigcontext structure depend on the machine architecture. Each machine-dependent structure member is defined in the signal.h include file. The sigreturn() function is used internally by the system software to restore the processor state on return from a signal handler and from a longjmp() function, to restore the state saved by a previous setjmp() or sigsetjmp() function. NOTES
An application should only use sigreturn() with great caution. RETURN VALUES
Upon successful completion, the sigreturn() function does not return. Otherwise, a value of -1 is returned and errno may be set to indi- cate the error. ERRORS
If the sigreturn() function fails, the process context remains unchanged and errno is set to one of the following values: The scp parameter points to memory space that is not a valid part of the process address space. The sigcontext structure contains unsupported or illegal values. RELATED INFORMATION
Functions: setjmp(3), sigaction(2), sigvec(2) delim off sigreturn(2)
All times are GMT -4. The time now is 10:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy