LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-07-2004, 10:54 AM   #1
jhayes
Member
 
Registered: Jul 2003
Posts: 33

Rep: Reputation: 15
Angry 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.
 
Old 04-07-2004, 11:05 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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
 
Old 04-07-2004, 01:43 PM   #3
jhayes
Member
 
Registered: Jul 2003
Posts: 33

Original Poster
Rep: Reputation: 15
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,
 
Old 04-07-2004, 02:26 PM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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
 
Old 04-07-2004, 03:37 PM   #5
jhayes
Member
 
Registered: Jul 2003
Posts: 33

Original Poster
Rep: Reputation: 15
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,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
add a program to run in vty/console at boot? carl0ski Mandriva 3 11-23-2004 07:07 AM
How to Run Win32 Console App in linux Console Lokie Linux - Software 2 08-12-2004 11:00 PM
Telnet console problem RajaRC Linux - General 4 01-13-2004 03:54 AM
can't login through telnet but can on console jnusbaum Linux - Newbie 2 02-18-2002 01:05 PM
Console / Telnet login problem jdlangdon Linux - General 0 12-13-2000 01:39 PM


All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration