LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to run a program on the console over telnet (https://www.linuxquestions.org/questions/linux-software-2/how-to-run-a-program-on-the-console-over-telnet-167299/)

jhayes 04-07-2004 09:54 AM

How to run a program on the console over telnet
 
hi i am using redhat 9, and my problem is that i have an app that if i start the app over telnet and leave it running in the background it doesn't work right. However if i start the app at the console on the server it works perfectly. Does anybody know how i can start an app from telnet and make it run on the console?


thanks,

i already tried app.sh & and

nohop app.sh &

but no luck with this two.

hw-tph 04-07-2004 10:05 AM

Try using the screen utility. This will allow you to SSH (which you should be using instead of telnet unless you use kerberos-encrypted telnet) in to the server, start screen and within the screen session use your program. You can then detach from the screen session and log off. Log in later again, re-attach to the screen and interact with the running program if needed. I wrote a longer post on this subject a while ago.


Håkan

jhayes 04-07-2004 12:43 PM

thansk for the tip hw-tph but that didn't work for my purposes. It kind of behaves like &. Somehow my app only works when being started from the console.

thanks,

hw-tph 04-07-2004 01:26 PM

screen works well even with very interactive apps like IRC clients and curses-based FTP clients (pftp-mew, most notably) so I can't really see what the problem is. What does the program do and how does it do that?


Håkan

jhayes 04-07-2004 02:37 PM

its' jboss server, java based web server. i think that the java code itself does not allow a head-less server. that's why i have to emulate the console from telnet in order for it to run successful.

thanks,


All times are GMT -5. The time now is 09:06 PM.