11-30-2019
Quoting is a pain in the ass if you try to do it in combination with ssh commands.
Some hints:
- Perform the actual textprocessing locally if possible, like this: ssh remoteserver command | grep ... | cut ... | awk ...
- Put all what you want to do into a script, copy the script to remote and run it. I wrote a small script myself, which does that for me on a list of servers:
- check connectivity to server
- copy script package to server
- extract script package on server
- run script on server
- delete script package
- If you have a list of servers you have to manage regularly, dive into some management or admin tool that allows the tasks for multiple servers(pssh, ansible, puppet, chef, saltstack, ...)
I just checked google. Seems that AIX has some support on the primary linux targeted config management tools above:
AIX configuration management with ... Something
Last edited by stomp; 11-30-2019 at 10:11 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how to run a command in different machie
in my case script will runs in solaries machine..
in one instance it has to run a command in different machine with different operating system ( linux ) using SSH command
i tried
ssh -l (login_name) (machine name/host ) " command "
but it is... (3 Replies)
Discussion started by: mail2sant
3 Replies
2. Shell Programming and Scripting
I have a command which will run fine in a unix command prompt. Can you tell how to interprete this command inside perl script......
The command is :
perl -pe 's/(\|333\}.*)\}$/$1|1.6}/' FIA.txt
This will search for the number 333 and appends 1.6 at the end of that line....... (1 Reply)
Discussion started by: vinay123
1 Replies
3. Solaris
when i run a command on ALOM via ssh i get following error
ssh root@10.23.12.51 showhosts
Password:
Waiting for daemons to initialize...
Daemons ready
shell: Invalid credentials
how can i run commands without actually loging to the sc (3 Replies)
Discussion started by: fugitive
3 Replies
4. Shell Programming and Scripting
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies
5. Shell Programming and Scripting
Hi,
I have a script file in server A. Inside the script file, I first have a ssh command that will connect to a remote server B. In the same script file itself, I have a sequence of commands that has to be run in server B. I am embedding these commands in the script file that I have in server A.... (2 Replies)
Discussion started by: mick_000
2 Replies
6. Shell Programming and Scripting
Hi all,
Is it possible to make this possible ?
$ echo $SKY_HOME
/var/sink/SKY
$ echo $SKY_HOME
/home/smily/SKY
$ ssh root@xyz "echo $SKY_HOME"
root@xyz 's password: ******
/home/smily/SKY wrong output
I was expecting the output as
/var/sink/SKY (3 Replies)
Discussion started by: linuxadmin
3 Replies
7. Shell Programming and Scripting
There's a JavaScript file that I call from command line (there's a framework) like so:
./RunDiag.js param1:'string one here' param2:'string two here'
I have a shell script where I invoke the above command. I can run it in a script as simple as this
#!/bin/bash
stuff="./RunDiag.js... (4 Replies)
Discussion started by: AcerAspirant
4 Replies
8. Shell Programming and Scripting
Hello,
I am trying to create a ksh script to login to server and collect gather output of some command to troubleshoot some issue.
DATE=`date +%b.%d.%Y.%M.%H`
echo " Enter emp id to login to server"
read Eid
Eid=$Eid
echo " Enter hostname of the system"
read HOST
HOST=$HOST... (2 Replies)
Discussion started by: saurabh84g
2 Replies
9. Shell Programming and Scripting
Hi,
I would like to run following code in bash inside a zsh script. (In this case is output unfortunately very different if you run it in zsh).
I tried to put "bash" in front of the code but I obtained following error message "bash: do: No such file or directory
" eve though I merged the whole... (7 Replies)
Discussion started by: kamcamonty
7 Replies
10. Shell Programming and Scripting
Hello,
Just wondered if there is any possibility to run a command at sharp time inside a script in linux. My question is not about crontab
Example:
#!/bin/bash
cd /home/database
for i in *
do
command 1
if time is 19:00, day is Monday then run command2
if time is 20:00, day is... (10 Replies)
Discussion started by: baris35
10 Replies
LEARN ABOUT DEBIAN
roundup-ctl
ROUNDUP-CTL(1) General Commands Manual ROUNDUP-CTL(1)
NAME
roundup-ctl - roundup server control interface
SYNOPSIS
roundup-ctl [options] command
DESCRIPTION
roundup-ctl is a front end to the roundup server. It is designed to help the administrator control the functioning of the roundup server
daemon. This script mimics most of the behaviour of a regular init script, but works as a front end to the runit package to control the
roundup service. So, in order to use this, you need the runit package, too. Please note that using this script is mostly incompatible with
having roundup controlled by runit directly in the form of automatic startup.
The roundup-ctl script returns a 0 exit value on success, and >0 if an error occurs. For more details, view the comments in the script.
OPTIONS
-d directory
Use given directory as service directory.
COMMANDS
The command can be any one or more of the following options:
start If the roundup server is not runinng, start it. If the server stops, restart it. stop Stops the roundup server. status Print sta-
tus of the roundup server.
SEE ALSO
roundup-server(1) runsvctrl(8) runsvstat(8) svwaitdown(8)
AUTHOR
Bastian Kleineidam <calvin@debian.org>, Toni Mueller <toni@debian.org>
31 May 2004 ROUNDUP-CTL(1)