Sponsored Content
Homework and Emergencies Homework & Coursework Questions Accessing one UNIX node from another node of the same server Post 302887066 by techy1 on Wednesday 5th of February 2014 12:41:50 PM
Old 02-05-2014
well lets say you can't use cron for whatever reason. maybe your not in the cron.allowed list. I'd hope you can use ssh.

I use the command

Code:
ssh -tt

to run commands on remote host

if you have a list of commands in a file to be executed you could do something like this:

Code:
while read line
do
ssh -tt $line 
done < <file>

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Tree directory structure of Unix to get final node path

Hi, I want to list all the last directories from mentioned base path. for eg: If i have a base path say /base/base1/ How can i get the path till last node in tree like directory structure of unix by applying any command. so that i will get following output. ... (7 Replies)
Discussion started by: Shiv@jad
7 Replies

2. Red Hat

Node size

Hi, Does the output of the command numactl --hardware available: 1 nodes (0-0) node 0 cpus: 0 1 node 0 size: 8155 MB node 0 free: 3231 MB No distance information available. where, node 0 size: 8155MB mean that the local memory associated with node 0 is 8155MB? Can anyone guide me... (0 Replies)
Discussion started by: heartbreakkid
0 Replies

3. SuSE

Node size

Hi, Does the output of the command numactl --hardware available: 1 nodes (0-0) node 0 cpus: 0 1 node 0 size: 8155 MB node 0 free: 3231 MB No distance information available. where, node 0 size: 8155MB mean that the local memory associated with node 0 is 8155MB? Can anyone guide me... (1 Reply)
Discussion started by: heartbreakkid
1 Replies

4. Linux

Accessing node size

Hi, Does the output of the command numactl --hardware available: 1 nodes (0-0) node 0 cpus: 0 1 node 0 size: 8155 MB node 0 free: 3231 MB No distance information available. where, node 0 size: 8155MB mean that the local memory associated with node 0 is 8155MB? Can anyone guide me... (0 Replies)
Discussion started by: heartbreakkid
0 Replies

5. UNIX for Dummies Questions & Answers

I-node and sessions

I have a program (written by me, for educational purposes) called "analyzer". The program takes a parameter, a filename, and does some statistics on it (for example, word's number, line's number, ... ) at regular intervals. My teacher told me that if the file is edited while the "analyzer" is... (4 Replies)
Discussion started by: hurricane
4 Replies

6. Solaris

SVM metaset on 2 node Solaris cluster storage replicated to non-clustered Solaris node

Hi, Is it possible to have a Solaris cluster of 2 nodes at SITE-A using SVM and creating metaset using say 2 LUNs (on SAN). Then replicating these 2 LUNs to remote site SITE-B via storage based replication and then using these LUNs by importing them as a metaset on a server at SITE-B which is... (0 Replies)
Discussion started by: dn2011
0 Replies

7. HP-UX

Mount FIle systems from node-1 onto node-2

Hi, We have HP UX service guard cluster on OS 11.23. Recently 40+ LUNs presented to both nodes by SAN team but I was asked to mount them on only one node. I created required VGs/LVs, created VxFS and mounted all of them and they are working fine. Now client requested those FS on 2nd node as... (4 Replies)
Discussion started by: prvnrk
4 Replies

8. Infrastructure Monitoring

Using Node-RED and MQTT to Monitor Server and Application Stats

After setting up MQTT and testing some ESP8266 and ESP32 modules, where I noted that testing in Programming ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages, I was so impressed with MQTT that I installed MQTT on three different computers, instantly and... (2 Replies)
Discussion started by: Neo
2 Replies

9. Programming

Node-RED: Writing MQTT Messages to MySQL DB with UNIX timestamp

First, I want to thank Neo (LOL) for this post from 2018, Node.js and mysql - ER_ACCESS_DENIED_ERROR I could not get the Node-RED mysql module to work and searched Google until all my links were purple! I kept getting ER_ACCESS_DENIED_ERROR with the right credentials. Nothing on the web was... (0 Replies)
Discussion started by: Neo
0 Replies
SSH-COPY-ID(1)						      General Commands Manual						    SSH-COPY-ID(1)

NAME
ssh-copy-id - install your public key in a remote machine's authorized_keys SYNOPSIS
ssh-copy-id [-i [identity_file]] [user@]machine DESCRIPTION
ssh-copy-id is a script that uses ssh to log into a remote machine and append the indicated identity file to that machine's ~/.ssh/autho- rized_keys file. If the -i option is given then the identity file (defaults to ~/.ssh/id_rsa.pub) is used, regardless of whether there are any keys in your ssh-agent. Otherwise, if this: ssh-add -L provides any output, it uses that in preference to the identity file. If the -i option is used, or the ssh-add produced no output, then it uses the contents of the identity file. Once it has one or more fin- gerprints (by whatever means) it uses ssh to append them to ~/.ssh/authorized_keys on the remote machine (creating the file, and directory, if necessary.) NOTES
This program does not modify the permissions of any pre-existing files or directories. Therefore, if the remote sshd has StrictModes set in its configuration, then the user's home, ~/.ssh folder, and ~/.ssh/authorized_keys file may need to have group writability disabled manu- ally, e.g. via chmod go-w ~ ~/.ssh ~/.ssh/authorized_keys on the remote machine. SEE ALSO
ssh(1), ssh-agent(1), sshd(8) OpenSSH 14 November 1999 SSH-COPY-ID(1)
All times are GMT -4. The time now is 08:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy