YEP! Already tried without success:
The server machine is OpenVMS OS. Last days I had found a solution with pscp (putty scp). But, if one of the server is unreachable (e.g. for maintenance), the PSCP hangs. That's no good since the script runs from crontab every 5 minutes!
With OpenSSH I can setup the TimeoutConnection to a few seconds, so if the server is down, the script continues with the copy to the other servers after a few seconds.
I cannot find any way to downgrade the timeout on PSCP as already do on OpenSSH.
hi, which Command is used for copy a file from one server to another server, please provide the syntax and give one small example...
Thanks in advance
sarwan (2 Replies)
hi,
i am getting error while executing the follwoing command.
/usr/local/bin/ssh2 user@hostname find /test/DeleteFile -mtime +10 -exec rm {} \;
error is :
find: 0652-018 An expression term lacks a required parameter.
it is deleting the files from the specified location. it is working... (2 Replies)
I have ssh keys setup and running properly between two servers. I have a Korn shell script that is logging into the remote server and needs to backup the authorized_keys and/or authorized_keys2 files.
The following syntax works perfectly
-------------------------------------
ssh... (1 Reply)
can some one help me to write a shell script that copy one file from one server to multiple server
ex:suppose i wnt to copy file abc.txt which is in server 1
to server2,server3,server4....:confused: (6 Replies)
I so desperately need a script to copy a windows csv file to my unix server and i know these should be at dummies but i have no bits. it is life & no job situation help please. thanks (1 Reply)
Hello Friends,
I am new to scripting, please guide me in below problem:
I want to track a file, if anyone make any changes to that file then script should copy it to another server.
my whole purpose is to backup a critical file automatically when any change is done to that specific... (1 Reply)
Hi all,
So I am on server 1, and I want to grab the newest file from a particular directory on server 2, and place this in a directory on server 1.
I am trying to use: ls -tr | tail -1
This works, and gets me the newest file in a particular directory. Using svn `ls -tr | tail -1` etc I... (1 Reply)
Using RCP command we can transfer file from one server to another server.
While transferring we can rename the file also e.g.
File name = FILE123.txt (lying on Source server = oldserver)
Target Server Name = newyour
Renamed File = FILE456.txt
rcp FILE123.txt newyour:./FILE456.txt... (1 Reply)
Hi ,
Is there any script to copy a files (weblogic bianary + silent.xml ) from one server (linux) to another servers and then execute the copy file.
We want to copy a file on multiple servers and run the installation.
Thanks (1 Reply)
Discussion started by: Nawrajesh
1 Replies
LEARN ABOUT CENTOS
spacewalk-channel
SPACEWALK-CHANNEL(8) Red Hat, Inc. SPACEWALK-CHANNEL(8)NAME
spacewalk-channel - Subscribe to or unsubscribe system from channel.
SYNOPSIS
spacewalk-channel [options]
DESCRIPTION
spacewalk-channel allows you to subscribe to and unsubscribe from specified channels via the command line. A visit to the "Spacewalk
Server", "Red Hat Satellite" or "Red Hat Network Classic" website isn't required.
OPTIONS -l, --list
Print a list of channel(s) that you are currently subscribed to.
-b, --base
Print a base channel that you are currently subscribed to.
-L, --available-channels
Print a list of all available child channels.
-a, --add
You are subscribing system to given channel(s). You have to specify --user and --password.
-r, --remove
You are unsubscribing system to given channel(s). You have to specify --user and --password.
-u, --user
Your username used to register the system with and for Red Hat Network Classic, Red Hat Satellite or Spacewalk. If you do not enter
this option and it is required, you will be prompted.
-p, --password
The password associated with the username specified with the --user option. This is an unencrypted password. If you do not enter
this option and it is required, you will be prompted.
-c, --channel
Label of channel you want to subscribe to or unsubscribe from. Can be specified multiple times.
-v, --verbose
Print out successfull action.
-h, --help
Show a help message and exit.
NOTE
The addition and removal of channels is mutually exclusive, please use the command twice.
EXAMPLES
Subscribe to two channels:
spacewalk-channel --add -c rhn-tools-rhel-i386-server-5 -c rhel-i386-server-vt-5 --user username --password password
Unsubscribe from channel:
spacewalk-channel --remove -c rhn-tools-rhel-i386-server-5 -c rhel-i386-server-vt-5 --user username --password password
List subscribed channels:
spacewalk-channel --list
SEE ALSO rhnplugin(8), rhn_register(8), up2date(5).
AUTHORS
Miroslav Suchy <msuchy@redhat.com>
BUGS
Report bugs to <http://bugzilla.redhat.com>.
COPYRIGHT
Copyright (C) 2009-2010 Red Hat, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
Linux 2010 August 30 SPACEWALK-CHANNEL(8)