Starting Scripts Using SSH


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Starting Scripts Using SSH
# 1  
Old 03-22-2016
Starting Scripts Using SSH

Hi all,

Case 1:
Code:
./Myscript.sh param   (on a first node)

Code:
Another node: (In parallel i run the same script)


./Myscript.sh param   (on a second node)

Case2:

From my host, using ssh:
Code:
for i in $(seq $nb_lignes)

 do
   machine=`head $1 -n $i | tail -1`
   echo "[Node is ] "
   echo $machine 

   ssh root@$machine -x "./Myscript.sh param"  &

 done

I'd like to know what's the difference between these two cases ?
Thank you so much for explanations
Kind regards.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Starting SSH in UNIX

I have been working on my UNIX box for just over 1 month. The issue I am having, I cannot get my SSH to start on the system. I have a few rsync programs that are depending on SSH. Can anyone please let me know how to get SSH started back? Any assistance will be much appreciated. Thanks (2 Replies)
Discussion started by: T Long
2 Replies

2. Solaris

Solaris 10 alternate ways of starting legacy scripts

Scenario: I have installed a service. When I start it by running /etc/init.d/<service> start it generates a massive amount of audit data (auditd) in /var/audit. So much so that running the service for any length of time is inadvisable due to overhead. However if I reboot the system the... (6 Replies)
Discussion started by: penguinpanzer
6 Replies

3. Shell Programming and Scripting

SSH starting nohup'd process - not exiting

I'm trying to ssh into a remote server, run a script which may or may not start a nohup'd background process and then exit leaving the process running on the remote server. I'm looping through a number of servers to do this but the script hangs as soon as it comes to a server where the remote... (3 Replies)
Discussion started by: Steve_H
3 Replies

4. Shell Programming and Scripting

How to starting process as daemon using ssh command?

Hello, I need to run a command on remote Linux using the ssh command from my local machine. I am able to execute the command on remote machine using ssh but it's behaving strangely. The command is supposed to start a daemon process on remote linux box and the control should return back to me... (5 Replies)
Discussion started by: nitinshukla
5 Replies

5. HP-UX

ssh scripts

hi, I need a script for transport a compressed files using ssh ( /oracle/JDD/oraarch.stanby filesytem ) in local server. and remote server also decompress these files and excute also in remote. (0 Replies)
Discussion started by: abozgul
0 Replies

6. AIX

error while starting SSH on AIX

Hi all while giving command ssh start i am getting following error exec(): 0509-036 Cannot load program ssh because of the following errors: 0509-150 Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.0.9.7) could not be loaded. 0509-152 Member... (4 Replies)
Discussion started by: kmalla
4 Replies

7. Shell Programming and Scripting

Starting application using shell scripts

Hi All, I want to write a shell script which will start some application lets say "Windows media player". Please let me know your inputs. Thanks in advance, Niyati (0 Replies)
Discussion started by: Niyati
0 Replies

8. Shell Programming and Scripting

use of ssh in scripts

Hi all.. My problem is i have some commands, some run in my linux machine, and the rest in another linux machine. I have to ssh to that machine.. how can i ssh with username and password in shell scripts.. can i use commands like thanks in advance (7 Replies)
Discussion started by: esham
7 Replies

9. Shell Programming and Scripting

scripts in another linux m/c via ssh

I want to write a script which connects to another linux via ssh. now i need to execute the rest of my script in that linux.. the echo is coming only when i exited from 10.1.1.252.. pls help (4 Replies)
Discussion started by: esham
4 Replies
Login or Register to Ask a Question
ppmtosixel(1)						      General Commands Manual						     ppmtosixel(1)

NAME
ppmtosixel - convert a portable pixmap into DEC sixel format SYNOPSIS
ppmtosixel [-raw] [-margin] [ppmfile] DESCRIPTION
Reads a portable pixmap as input. Produces sixel commands (SIX) as output. The output is formatted for color printing, e.g. for a DEC LJ250 color inkjet printer. If RGB values from the PPM file do not have maxval=100, the RGB values are rescaled. A printer control header and a color assignment table begin the SIX file. Image data is written in a compressed format by default. A printer control footer ends the image file. OPTIONS
-raw If specified, each pixel will be explicitly described in the image file. If -raw is not specified, output will default to com- pressed format in which identical adjacent pixels are replaced by "repeat pixel" commands. A raw file is often an order of magni- tude larger than a compressed file and prints much slower. -margin If -margin is not specified, the image will be start at the left margin (of the window, paper, or whatever). If -margin is speci- fied, a 1.5 inch left margin will offset the image. PRINTING
Generally, sixel files must reach the printer unfiltered. Use the lpr -x option or cat filename > /dev/tty0?. BUGS
Upon rescaling, truncation of the least significant bits of RGB values may result in poor color conversion. If the original PPM maxval was greater than 100, rescaling also reduces the image depth. While the actual RGB values from the ppm file are more or less retained, the color palette of the LJ250 may not match the colors on your screen. This seems to be a printer limitation. SEE ALSO
ppm(5) AUTHOR
Copyright (C) 1991 by Rick Vinci. 26 April 1991 ppmtosixel(1)