Starting a process remotely


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Starting a process remotely
# 1  
Old 06-23-2015
Starting a process remotely

Hello all,

Please, i try to start cassandra remotely but it didn't work. i don't find cassandra process when using ps aux|grep cassandra

Code:
ssh -t root@g-8 -x "sshpass -p 'ubuntu' ssh -t root@10.147.243.163 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -x '/home/apache-cassandra-2.1.6/bin/cassandra'"


Have you an idea please ?



Thanks a lot.

Best Regards.
# 2  
Old 06-23-2015
Dont you have anything in your logs?
# 3  
Old 06-23-2015
Thank you for your answer.
which log files please ?

I have created test.sh:
Code:
echo "hi"
/home/apache-cassandra-2.1.6/bin/cassandra

When i use:

Code:
ssh -t root@g-8 -x "sshpass -p 'ubuntu' ssh -t root@10.147.243.163 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -x './test.sh'"

it display:

Code:
Warning: Permanently added '10.147.243.163' (ECDSA) to the list of known hosts.
hi
Connection to 10.147.243.163 closed.

but i can't fin cassandra proces..

P.S: when i use /home/apache-cassandra-2.1.6/bin/cassandra directly on the remote machine, it works.

Kind Regards.
# 4  
Old 06-23-2015
Quote:
P.S: when i use /home/apache-cassandra-2.1.6/bin/cassandra directly on the remote machine, it works.
My undertanding ( I dont know cassandra...) is that if you connect on the remote it works, then it has to do with the shell... when you say it works, if you disconnect from the remote and reconnect do you see the product still running?
But on the remote box did you not go and see in /var/log/cassandra if you have clues?
# 5  
Old 06-23-2015
Yes it still running.
# 6  
Old 06-23-2015
Did you look in /var/log/cassandra ?
# 7  
Old 06-23-2015
I wonder if it not something to do with your environment...
like not having JAVA_HOME set...
A good way of testing is to try to stra cassandra using cron on the remote, if it doesnt work then sure it is to do with your environment...
This User Gave Thanks to vbe For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Changing process id after starting

Hi We are in the situation where we want to start WebSphere using teh default SSL port of 443. In order to do this we can changed the WAS ssl port from 9443 to 443 and start as root. We would prefer not to start as root but the restriction of using ports < 1024 comes into play. We could install... (3 Replies)
Discussion started by: hukcjv
3 Replies

2. Shell Programming and Scripting

How to exit prompt when starting a weblogic administration server remotely?

Hi, I am trying to start Weblogic Admin server using start-up script (./startWeblogic.sh) from a remote host using a different user. The server starts fine but prompt is stuck, it does not return Background: We have multiple admin servers in different environment and the requirement is all... (4 Replies)
Discussion started by: bhaskar_m
4 Replies

3. Shell Programming and Scripting

[KSH/Bash] Starting a parent process from a child process?

Hey all, I need to launch a script from within 2 other scripts that can run independently of the two parent scripts... Im having a hard time doing this, if anyone knows how please let me know. More detail. ScriptA (bash), ScriptB (ksh), ScriptC (bash) ScriptA, launches ScriptB ScirptB,... (7 Replies)
Discussion started by: trey85stang
7 Replies

4. UNIX for Dummies Questions & Answers

Starting a process whose ppid should be 1

How can I start a process with ppid as 1 instead of my current shell pid? (2 Replies)
Discussion started by: siba.s.nayak
2 Replies

5. UNIX for Advanced & Expert Users

problem starting a process on solaris from other user

Hi Gurus, I have a server that has to users. 1) root 2)net1 there are several processes running on my server one of the process is CMIS_STACK process which is a compiled C code when this process goes missing then i restart this process manually in the following manner ... (2 Replies)
Discussion started by: asalman.qazi
2 Replies

6. 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

7. UNIX for Advanced & Expert Users

Remotely kill a process

Hi guys, is there a way to send a term signal or kill a process on a remote node from a shell script? thanks Jon (6 Replies)
Discussion started by: jlk
6 Replies

8. Shell Programming and Scripting

get process information remotely

Hello, We have a domain where instances attached to it are in multiple machines. Is there any way that I can get the process information of the domain of a secondary server from the primary. ssh authentication is enabled on the functional ID and if I scsu to that ID and do the ssh: $ssh machine2... (0 Replies)
Discussion started by: chiru_h
0 Replies

9. OS X (Apple)

process starting

Hello everybody! I got a question on process starting. I installed e.g. squid on my Mac and all is working well, but i wanted to figure out what process or script is starting squid on booting the machine. I searched for a while but i could not find where i can change these configuration. ... (2 Replies)
Discussion started by: count_zero
2 Replies

10. Shell Programming and Scripting

capture the process id when starting a background process

Hello all, How do I start a background process and save the process id to a file on my system. For example %wait 5 & will execute and print the process id. I can't figure out how to get it to a file. I've tried: > filename 0>filename 1>filename. Any assistance is most appreciated. Thanks, Jim... (10 Replies)
Discussion started by: jleavitt
10 Replies
Login or Register to Ask a Question