Running an Interactive Program Remotely


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Running an Interactive Program Remotely
# 1  
Old 10-19-2006
Running an Interactive Program Remotely

now, i have a program that i would very much prefer to run remotely as i hate having to log into the box it is on.

the problem is, every command i have tried to run this remotely doesn't work.

the commands tries to kick off the program on the remote box but then hangs.

like take for instance,

ssh root@galaxy '/usr/bin/soft/accoutlood -a username'


when i kick off the above command, it looks like its going to run but it does not. it just kinda sits there and i would have to Control-C out of it to get the prompt back.

anyway to deal with this. i want to be able to run the above command remotely like i would have been had i been on the box itself.

any advice is appreciated.

the remote system i'm running the above command from is a SunOS system. The sysstem that the program itself lives on is a Linux system. (maybe this could be an issue)
Terrible
# 2  
Old 10-19-2006
It sounds like a GUI application, right (just making sure)? Try adding -X to your ssh line to throw the windowing output back to your sun box (assuming you're accessing via a window manager like cde). If your firewall allows it (not blocking X11) and X11Forwarding is set to yes in your sshd_config file, you should be able to access the application that way.

Carl
# 3  
Old 10-19-2006
Quote:
Originally Posted by BOFH
It sounds like a GUI application, right (just making sure)? Try adding -X to your ssh line to throw the windowing output back to your sun box (assuming you're accessing via a window manager like cde). If your firewall allows it (not blocking X11) and X11Forwarding is set to yes in your sshd_config file, you should be able to access the application that way.

Carl

thanks for the reply. its not a gui application. its more like a interactive shell program
Terrible
# 4  
Old 10-20-2006
it seems the remote script is waiting for input through the console ... since the console is not active through the remote connection, the script hangs while waiting for input that cannot get there ... try debugging the remote script to get it to work remotely or use expect (or perl or something else) to fork a shell at the remote server to get around your problem ... good luck!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Difference between running a script locally and remotely

Hello, Please, what is the difference between running a script remotely: ssh -t root@$machine -x "sshpass -p 'ubuntu' ssh -t ubuntu@$address -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/nul -x './c-launch.sh'" and running a script directly on the host: ... (1 Reply)
Discussion started by: chercheur111
1 Replies

2. Shell Programming and Scripting

Then error while running script remotely

facing issue with then error while running a local script aginst a remote server. i facing the same issue in multiple scripts. So what i am missing here or what is needed. #!/bin/ksh echo "enter the filename" read file if then echo "file exists" else echo "file does not exists" fi ... (0 Replies)
Discussion started by: NarayanaPrakash
0 Replies

3. Programming

Non-interactive login using C program in UNIX(Solaris)

Hi i need a c programm to login in unix(solaris). non-interactivley because it seems difficult to do it with unix shell scripting and passwd command cant be used and also i don't have expect installed and i am not allowed to installed expect in our servers. is there any c programm that can help... (1 Reply)
Discussion started by: munish259272
1 Replies

4. Programming

Run interactive program in background and grep it

I need to run an interactive program in the background so I can grep it for specific data to use for some logic in a script. There is no quiet or background mode on the program so I plan to redirect a document with commands in it and then to grep the output. This is almost working, except... (1 Reply)
Discussion started by: doonan_79
1 Replies

5. Shell Programming and Scripting

scripting an interactive program session

Hello, I'm looking to script the basic instant messaging program we have in my company, it's called "oi", it's working as follow: # oi $user then we have to launch it... after finding the system of the user it's asking for the message... then on a new line we have to hit ctrl+d I... (2 Replies)
Discussion started by: nomadvisuals
2 Replies

6. AIX

Mozilla running remotely

We have a server that has CDE and Mozilla installed on it. I have a develpoer who want to have an application start Mozilla locally on the AIX server (which has no video card) or wants Mozilla running on the server at all times. Can anybody tell me if this is at all possible? If so how and if... (4 Replies)
Discussion started by: daveisme
4 Replies

7. Shell Programming and Scripting

Develop Program with 'None Interactive Flag'

Hi I have created a program but am currently wondering how to develop it further. I wanted to know how i would go about developing the program further so that it is able to run with a "none interactive flag" enabling execution to be automated with the resultant file e-mailed to a user once a week.... (1 Reply)
Discussion started by: warlock129
1 Replies

8. Linux

execute a program remotely using putty

hi all. I have a small program on a debian server which i need to execute remotely from a windows machine using putty. when i use putty to execute the program it starts running , but when i close the session the program stops running on the debian server as well. Can anyone guide me how... (4 Replies)
Discussion started by: coolatt
4 Replies

9. Shell Programming and Scripting

Making Interactive program

Hi Friends I am trying to make an interactive shell script ( I do not have expect tool ) My objective is 1.I have a progam named say "inter" The program when ran on command prompt will be as below Prompt>inter Please enter the choice 1.enter 1 2.enter 2 < I need to enter 1 or 2... (4 Replies)
Discussion started by: sivasenthil_k
4 Replies

10. Shell Programming and Scripting

running commands with remotely with Telnet

i have a box here that can only be accessed with telnet. now, i was wondering if anyone know of a way of which i can run a command on that box remotely. (2 Replies)
Discussion started by: Terrible
2 Replies
Login or Register to Ask a Question