Sponsored Content
Top Forums Shell Programming and Scripting Running remote system shell script and c binary file from windows machine using java Post 302559791 by ram.sj on Wednesday 28th of September 2011 06:49:10 AM
Old 09-28-2011
Java Running remote system shell script and c binary file from windows machine using java

Hi,

I have an shell script program in a remote linux machine which will do some specific monitoring functionality. Also, have some C executables in that machine.

From a windows machine, I want to run the shell script program (If possible using java).
I tried with SSH for this. but, in terminalthe c executable process pts shown as ? mark. The C executable doesnot receive any command.
But, if run the C executable in the system directly, it is running properly.

In windows system, java program, I exported DISPLY=:0.0,
but same problem in executing remote problem.
Can you help me on this.

Thanks,
Kumar Raj
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to mount a file system of a remote machine to local file system

Hi friends, In my case, there are serveral PCs running Linux in a LAN. I would like to to mount the directory /A_river of machine-A to the file system of another machine machine-B so that I can access files in that directory. I do not know how to do this. The situation is complicated by... (2 Replies)
Discussion started by: cy163
2 Replies

2. UNIX for Dummies Questions & Answers

Copy file from Remote Unix box to windows machine

Hi I need to copy a file from the remote unix server to windows machine. I read lot of thrad but didn't worked out. Requesting all to please help. (2 Replies)
Discussion started by: sameerspice
2 Replies

3. UNIX for Advanced & Expert Users

Running script on remote machine

if i have a script in my system which i need to run on remote system using ssh, how shall i do it? One easy way to to first scp it to remote machine and then run it on remote machine using ssh. Is there any one step way to do it. Preferably one in which i should give password only once (3 Replies)
Discussion started by: vickylife
3 Replies

4. Shell Programming and Scripting

running script in background on remote machine

Hi there I have a script which is running a remote command on hundreds of boxes, it takes around 5 minutes to return an output from this command and because i am running this all from a central box, it goes off to each box in my for loop sequentially meaning that my script will wait for output... (5 Replies)
Discussion started by: hcclnoodles
5 Replies

5. UNIX for Advanced & Expert Users

Script running on remote machine - How ??

Hi All, This was an interview question " There is a clean-up shell-script in one UNIX machine and it is connected to 100 other UNIX machines. Howe can we run the script on all the 100 machines without ftping/copying the script to target machines ? I was unable to answer, please answer if... (5 Replies)
Discussion started by: coolbhai
5 Replies

6. Shell Programming and Scripting

How to run perl script in remote machine from java application?

Hi I am working in a java application. I need to execute a perl script(linux) which is in remote machine in java application from local machine(windows). I need to do this process automatically that is without manual intereption. Now I will explain the process clearly, at present to run the... (1 Reply)
Discussion started by: bassma
1 Replies

7. Shell Programming and Scripting

shell script to copy files frm a linux machine to a windows machine using SCP

I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine. for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Discussion started by: nithin6034
3 Replies

8. OS X (Apple)

Quit a shell script thats running on a remote machine

I'm in a situation where I am executing a shell script(Bash) on another machine remotely using ssh, and for various reasons sometimes need to quit it and restart it. The shell script being run does many different things, so its hard to know what process to kill on the remote machine, and even if I... (2 Replies)
Discussion started by: TheDrizzle
2 Replies

9. Shell Programming and Scripting

To run a shell script in remote server from windows batch file

Hi all, i need to run a shell script on remote server. I have created file .bat file in windows server with following code, c:\Users\Desktop\putty.exe -ssh -pw password user@server ./script.sh i need to run the script.sh in my remote server Above command is not working, any... (4 Replies)
Discussion started by: rammm
4 Replies

10. Shell Programming and Scripting

Keep a script on remote machine running (nohup?)

Hi, I'm using expect to ssh into remote machine (i know its not the best practice), and run script "script.sh". This "script.sh" checks whether an other process (some another script) is running and if not, it runs it as some other user. #!/bin/bash /usr/bin/expect << EOD set... (5 Replies)
Discussion started by: oseri
5 Replies
EFINGERD(8)						      System Manager's Manual						       EFINGERD(8)

NAME
efingerd - another finger daemon for linux SYNOPSIS
efingerd [-t X] [-f] [-n] [-u] [--help] [--version] efingerd should be run from inetd. DESCRIPTION
efingerd is another finger daemon, giving you complete control over what are you going to display about your computer. OPTIONS
--help Show summary of options and exit. --version Show version and exit. -t X Lifetime for spawned services (in seconds) ex: -t 25 maintain connections for up to 25 seconds (default: -t 60) -n Do not lookup addresses, use IP numbers instead -f Do not display users' full names. -u Ignore user-specific .efingerd file USAGE
If you are just an ordinary user and efingerd is already installed by your friendly administrator, you can take the advantage of it by mak- ing executable .efingerd in your home directory (it can be anything - from single shell script to a program in super-hyper-extra-object oriented language - only speed makes a difference). This program takes two arguments, the first is the name of remote user fingering you (or (null) if his/her/its system does not run ident), the second one is address of his computer (or ip number, if efingerd is installed with option -n). Standard output of this program is then displayed to the person fingering you. Look at examples/.efingerd for a nice example. Following executables are providing information about your machine to the fingerer: /etc/efingerd/list what to display when somebody does finger @your.machine /etc/efingerd/luser what to display when somebody fingers user on your machine, and the fingered user does not have ~/.efingerd file /etc/efingerd/nouser what to display when somebody fingers non-existent user on your machine If the local user has file .efingerd in his/her/its home directory, and it is readable by the daemon, it will be executed and it's output will be served to the fingerer. These are normal programs, displaying on standard output desired information. These programs are called with following parameters: $1 - identity of remote user, (null) if his/her/its system is not running ident $2 - address of remote machine (IP number if it has not reverse DNS entry or you specified -n) $3 - name of local user being fingered Look at examples/ for examples. Don't forget that these programs must be executable by efingerd daemon. SEE ALSO
finger(1), fingerd(8) AUTHOR
Radovan Garabik (garabik@fmph.uniba.sk) BUGS
file .efingerd in user's home directory must be executable and readable by UID efingerd runs under to work. EFINGERD(8)
All times are GMT -4. The time now is 03:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy