Sponsored Content
Top Forums Shell Programming and Scripting scp and append to a remote node Post 302819057 by Peasant on Monday 10th of June 2013 07:48:46 AM
Old 06-10-2013
Here is an alternative way with no pipe :
Code:
ssh root@ahcaxdbmil1c "cat >> /usr/local/system/scripts/myout.txt" < /usr/local/system/scripts/myout.txt

This User Gave Thanks to Peasant For This Post:
 

10 More Discussions You Might Find Interesting

1. Solaris

scp - copy between two remote machines?

1. scp person1@10.10.10.1:file1 person2@10.10.10.2:file1 2. scp file1 person1@10.10.10.1:file1 For #1, I keep getting this error: Password: Host key verification failed. lost connection I have entered the correct password too! #2 works fine. I suppose I cannot copy a file between two... (6 Replies)
Discussion started by: kungpow
6 Replies

2. Shell Programming and Scripting

Script failing to run successfully on remote node

Hi guys, I have a scenario where i want to run a script from Node A. It ssh's into Node B and runs some awk commands there plus deposiriting the output on Node B. Challenge is that the awk commands run properly when executed locally on Node B but fail when within the script on Node B. I do not... (0 Replies)
Discussion started by: jerkesler
0 Replies

3. Solaris

scp from remote dir

Hi Admins, I want to scp some files from remote sub directories.So i used below scripts to accomplish the same. find `ssh testsftp@10.60.5.120/QSYS.LIB/EDWVPINTER.LIB` -name *.MBR -exec scp {} . \; It fails. I can not place copying script in remote server for various reasons. ... (1 Reply)
Discussion started by: newaix
1 Replies

4. Shell Programming and Scripting

scp or rsync multiple files in parallel from a remote host

Hi. I'm trying to speed up an rsync command by running it in parallel. There's no real option for this other than if the files are in multiple directories (which they're not). And even then there's no way of knowing if rsync has succeeded as the process is running in the background .. and... (4 Replies)
Discussion started by: Big_Jeffrey
4 Replies

5. Shell Programming and Scripting

scp files that are 3 days older from remote server-

hello, i am trying to get a list of files to be scped from the remote server by running the below in my local unix server ( note - there is a passwordless connectivity setup made between the local and remote server) and, we use KSH. --- ssh $scp_host "find /a/b/c/*/ -iname "$remote_file"" >... (4 Replies)
Discussion started by: billpeter3010
4 Replies

6. Shell Programming and Scripting

Running commands in remote node as root user

Platform :Oracle Linux 6.4 We are trying to automate the SAN level cloning from production RAC DB cluster to test. From a shell script, I would like to run the below command Step1,2 and 3 from Node1 in a sequential order as root user . How can I do this ? passwordless for root user is not... (2 Replies)
Discussion started by: kraljic
2 Replies

7. Shell Programming and Scripting

Except script fails to check file exists or not in remote node

Dear members, The following expect script connects to remote node and check for the file "authorized_keys" in directory /root/.ssh in remote node. However the result is always found even if the file exist or doesn't exist. expect { "$fname" { send_user "found\n" } Any idea what is... (4 Replies)
Discussion started by: Sudhakar333
4 Replies

8. UNIX for Beginners Questions & Answers

scp of multiple files to remote server

Hello, I would like to scp multiple files to a remote server that requires a password for the process to be completed. I have 30 folders (x_1, x_2 ... x_30), each containing 25 files. What I want to do is scp 1 out of the 25 files (file called bvals) for all my folders to a remote server and... (3 Replies)
Discussion started by: nasia.m
3 Replies

9. Shell Programming and Scripting

Check if remote destination is available before running scp command

I have a script on a Linux box which scp the files to windows server without any issues. but there are time frames where the windows server will not be available due to maintenance. hence I need to check if the remote location is available before running the scp command. scp... (3 Replies)
Discussion started by: gpk_newbie
3 Replies

10. UNIX for Beginners Questions & Answers

scp auto logon to remote using remote authorized_keys

Hi~ i have an authorized key which it made remote host(B). i want log on without password from local(A) to the remote host(B) using authorized key of remote host. what shell i do? anybody help me. (1 Reply)
Discussion started by: tomato00
1 Replies
NDB_ERROR_REPORTE(1)					       MySQL Database System					      NDB_ERROR_REPORTE(1)

NAME
ndb_error_reporter - NDB error-reporting utility SYNOPSIS
ndb_error_reporter options DESCRIPTION
ndb_error_reporter creates an archive from data node and management node log files that can be used to help diagnose bugs or other problems with a cluster. It is highly recommended that you make use of this utility when filing reports of bugs in MySQL Cluster. The following table includes command options specific to the MySQL Cluster program ndb_error_reporter. Additional descriptions follow the table. For options common to most MySQL Cluster programs (including ndb_error_reporter), see Options Common to MySQL Cluster Programs(1). ndb_error_reporter did not support the --help option prior to MySQL Cluster NDB 7.2.14 (Bug #11756666, Bug #48606). The --connection-timeout --dry-scp, and --skip-nodegroup options were also added in this release (Bug #16602002). Table 17.20. ndb_error_reporter Options and Variables: MySQL Cluster NDB 7.2 +-------------------------------------+-------------------------------------+-------------------------------------+ |Format | Description | Added / Removed | +-------------------------------------+-------------------------------------+-------------------------------------+ | | Number of seconds to wait when | | | --connection-timeout=timeout | connecting to nodes before timing | ADDED: NDB 7.2.14 | | | out. | | +-------------------------------------+-------------------------------------+-------------------------------------+ | | Disable scp with remote hosts; used | | | --dry-scp | only for testing. | ADDED: NDB 7.2.14 | +-------------------------------------+-------------------------------------+-------------------------------------+ | | Include file system data in error | | | --fs | report; can use a large amount of | All MySQL 5.5 based releases | | | disk | | | | space | | +-------------------------------------+-------------------------------------+-------------------------------------+ | | Skip all nodes in the node group | | | --skip-nodegroup=nodegroup_id | having this ID. | ADDED: NDB 7.2.14 | +-------------------------------------+-------------------------------------+-------------------------------------+ Usage ndb_error_reporter path/to/config-file [username] [options] This utility is intended for use on a management node host, and requires the path to the management host configuration file (usually named config.ini). Optionally, you can supply the name of a user that is able to access the cluster's data nodes using SSH, to copy the data node log files. ndb_error_reporter then includes all of these files in archive that is created in the same directory in which it is run. The archive is named ndb_error_report_YYYYMMDDHHMMSS.tar.bz2, where YYYYMMDDHHMMSS is a datetime string. ndb_error_reporter also accepts the options listed here: o --connection-timeout=timeout +--------------------+------------------------------+ |Introduced | 5.5.34-ndb-7.2.14 | +--------------------+------------------------------+ |Command-Line Format | --connection-timeout=timeout | +--------------------+------------------------------+ | | Permitted Values | | +-------------+----------------+ | | Type | integer | | +-------------+----------------+ | | Default | 0 | +--------------------+-------------+----------------+ Wait this many seconds when trying to connect to nodes before timing out. o --dry-scp +--------------------+-------------------+ |Introduced | 5.5.34-ndb-7.2.14 | +--------------------+-------------------+ |Command-Line Format | --dry-scp | +--------------------+-------------------+ | | Permitted Values | | +---------+---------+ | | Type | boolean | | +---------+---------+ | | Default | TRUE | +--------------------+---------+---------+ Run ndb_error_reporter without using scp from remote hosts. Used for testing only. o --fs +--------------------+-------------------+ |Command-Line Format | --fs | +--------------------+-------------------+ | | Permitted Values | | +---------+---------+ | | Type | boolean | | +---------+---------+ | | Default | FALSE | +--------------------+---------+---------+ Copy the data node file systems to the management host and include them in the archive. Because data node file systems can be extremely large, even after being compressed, we ask that you please do not send archives created using this option to Oracle unless you are specifically requested to do so. o --skip-nodegroup=nodegroup_id +--------------------+------------------------------+ |Introduced | 5.5.34-ndb-7.2.14 | +--------------------+------------------------------+ |Command-Line Format | --connection-timeout=timeout | +--------------------+------------------------------+ | | Permitted Values | | +-------------+----------------+ | | Type | integer | | +-------------+----------------+ | | Default | 0 | +--------------------+-------------+----------------+ Skip all nodes belong to the node group having the supplied node group ID. COPYRIGHT
Copyright (C) 1997, 2014, Oracle and/or its affiliates. All rights reserved. This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/. SEE ALSO
For more information, please refer to the MySQL Reference Manual, which may already be installed locally and which is also available online at http://dev.mysql.com/doc/. AUTHOR
Oracle Corporation (http://dev.mysql.com/). MySQL 5.5 01/30/2014 NDB_ERROR_REPORTE(1)
All times are GMT -4. The time now is 05:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy