LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 03-28-2019, 03:01 PM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Rep: Reputation: 23
Connecting to an application that runs a its own prompt


Hello,

During boot I'm running an application in the background (&).
The application has a prompt in which a user can type commands for Ethernet switch configuration.

Via ssh I'm connecting to the Centos and get a regular terminal prompt.
How can I get and with work the terminal of the above application which is already running ?

Thank you,
Zvika
 
Old 03-28-2019, 03:16 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
There are a lot of variables involved. Typically a process started in the background (e.g. by SysV init, systemd or cron) has no tty/pty assigned. You see a ? in the field for that when running "ps -ef". You would also see that if you had nohup'ed a process you started in backgroun on a terminal then closed the terminal.

This discussion talks about various ideas, none of which have I tried but it might be useful:

If it is something you are starting manually in background from a terminal you might want to start it with "screen".

If this is starting in background as a GUI you may be able to use something like Xvfb to manage it.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Chakra Linux: Its Own Beast, Its Own Beauty LXer Syndicated Linux News 0 08-18-2017 05:42 PM
LXer: Microsoft has created its own FreeBSD. Repeat. Microsoft has created its own FreeBSD LXer Syndicated Linux News 0 06-09-2016 11:42 AM
LXer: Microsoft has developed its own Linux. Repeat. Microsoft has developed its own Linux LXer Syndicated Linux News 0 09-18-2015 04:51 PM
LXer: Shaky liftoff for Sputnik: Dell's Linux lappie runs its own cloud, ish LXer Syndicated Linux News 0 04-12-2013 08:10 PM
[SOLVED] having problem chown-ing a file so the cron runs it as its own user qwertyjjj Linux - Newbie 16 08-28-2009 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

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

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
Open Source Consulting | Domain Registration