The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 05:24 AM
Making Interactive program sivasenthil_k Shell Programming and Scripting 4 07-23-2006 01:51 AM
In C Program, determine if job is running BCarlson High Level Programming 12 07-16-2006 12:05 PM
running commands with remotely with Telnet Terrible Shell Programming and Scripting 2 06-27-2006 04:47 PM
Running a program perleo UNIX for Dummies Questions & Answers 3 08-23-2002 10:34 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-19-2006
Terrible
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
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)
  #2 (permalink)  
Old 10-19-2006
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
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 (permalink)  
Old 10-19-2006
Terrible
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
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
  #4 (permalink)  
Old 10-19-2006
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
  
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 637
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!
Closed Thread

Bookmarks

Tags
linux commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:44 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0