10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I wanted to zip some files (very large files) on our cluster (centOS). I am told that I should use the head node for this as it would tie down the CPU. How can I do this using one of the other nodes in the cluster?
For small files, I would just log into the cluster using ssh (ie. ssh... (1 Reply)
Discussion started by: pc2001
1 Replies
2. Shell Programming and Scripting
Hi,
I'm successfully written a script which tar a directory and ssh's it over a remote server
tar cfv - $SDIR | ssh $RHOST "cat > $DDIR/backup.$BKPEXT.tar"
However, Im unable to log the activity to a file. i.e for example if I do
tar cfv - $SDIR | ssh $RHOST "cat >... (1 Reply)
Discussion started by: maverick_here
1 Replies
3. Shell Programming and Scripting
Hi @ all
I have the following scenario:
As Admin of a cupple of servers I tried to write the following script to figure out, if the machine is up and available and if some directory´s were available. But my script is having some probs, while running. Maybe some of you have a better way to... (9 Replies)
Discussion started by: muogli
9 Replies
4. Shell Programming and Scripting
ok, I'm new to the forum and I did a few searches and didn't find much on this so here goes.
I have a ksh I use to call an expect script that opens a ssh session and then extracts a tar file. The tar file has my prefered .profile and my ssh keys. I want to run this script 1 time on new servers and... (2 Replies)
Discussion started by: gtsonoma
2 Replies
5. Shell Programming and Scripting
I am new here so I apologize if this question is in the wrong section or outside of the realm of this board. Also, this is just my first week into shell programming so I am probably doing lots of things wrong.
I am trying to write a script to ssh to a machine as one user and then run a command... (0 Replies)
Discussion started by: Parva
0 Replies
6. Red Hat
I use red hat linux.
I have two linux server .
I want to use tar over ssh to tar and untar the file.
The server A , have IP 10.1.1.a ,there is dir a and contain files.
The server B have IP 10.1.1.b , there is dir b and contain file .
So, in above case ,how can I tar over ssh sunc that the file... (0 Replies)
Discussion started by: chuikingman
0 Replies
7. Shell Programming and Scripting
I am trying to put an awk command in ssh, for example:
ERRCOUNT=`ssh -n $HOST "ps -ef | grep .job | grep -v grep | grep -v alert_jobs_still_running |wc -l"`
From korn shell prompt this works:
awk '/^Jul 12 16/ {print $0}' /u01/app/oracle/jobs/adhoc/test.dat | wc -l
My data file:... (3 Replies)
Discussion started by: bradyd
3 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I have a server that has a tape drive attached to it in our company's DMZ. I want to backup the data on other servers onto this tape drive using a script. I will have to ssh into each machine and execute a tar command and instruct the tar command to send the data back to the server that... (5 Replies)
Discussion started by: mojoman
5 Replies
9. Shell Programming and Scripting
Hi,
I'm trying to write a script that will ssh into a number of boxes and run 'top' and 'ps', then output the results to a file with the hostname. The script only seems to run top or ps on the local machine though. Any help would be apperciated
#ssh into box
while read box
do ssh -n $box ... (3 Replies)
Discussion started by: Brimak86
3 Replies
10. Shell Programming and Scripting
I know the root login/password for a machines, and I want to automate some commands like this from each:
ssh root@remoteHost1 "tail /var/log/messages"
ssh root@remoteHost2 "tail /var/log/messages"
ssh root@remoteHost3 "tail /var/log/messages"
ssh root@remoteHost4 "tail /var/log/messages"
ssh... (2 Replies)
Discussion started by: jjinno
2 Replies