I need to execute a remote application (named ConnectionManager), which uses the ncurses library, on the remote server launching it from a local pc.
ConnectionManager is a program wich use ncurses and forks another process (itself) and waits for incoming tcp/ip connection.
Distributor ID: ScientificSL Description: Scientific Linux SL release 5.5 (Boron) Release: 5.5 Codename: Boron (Like Centos5.5)
I use this script:
#!/bin/bash INFORMIXDIR=/opt/informix INFORMIXSERVER=server1_on ONCONFIG=onconfig.eda PATH=$PATH:$INFORMIXDIR/bin export INFORMIXDIR INFORMIXSERVER ONCONFIG PATH echo $INFORMIXSERVER echo $ONCONFIG echo "Launch ConnectionManager" export DISPLAY=:0.0 && xterm -e 'sudo -E /opt/informix/server /ConnectionManager'
and it all works.
The previous script doesn't work on
Distributor ID: Scientific Description: Scientific Linux release 6.4 (Carbon) Release: 6.4 Codename: Carbon
The ConnectionManager doesn't allow an IP connection.
I want to leave the ConnectionManager program running in a remote machine, also when I launch it from a local machine.
I have tried
screen -d -m ./ConnectionManager. The application works, but I don't see it on remote machine. I need to see the ConnectionManager within an xterm window.
Is it possible that sudo is blocking ConnectionManager tcp/ip connections ?
Update: When I use this command: sudo './ConnectionManager' I have immediately the following message: + Stopped sudo './ConnectionManager'
I have check the code and the problem is the instruction
int setpgrp(void) in ConnectionManager.