LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-26-2019, 11:56 AM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Rep: Reputation: 23
Launch application in specified session


Hello,

During boot I want to start an application in another session.
How can I do it ?
I move to this session by: Alt <F1>,<F2>...

In case I work with this machine via SSH, how can I switch between sessions ?

Thank you,
Zvika
 
Old 03-26-2019, 05:06 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
To run a command in a new or existing virtual terminal, try openvt. I don’t know what exactly you mean with “during boot”, but perhaps systemd’s rc-local.service is your solution.

To switch between ssh sessions: If the local shell has job control, you can suspend the current shell session with the two-key sequence tilde ctl-z. To resume a suspended ssh session, list all suspended jobs with the jobs command, then fg %N to resume job number N.

You could also run each ssh in a screen then use ctl-a d to leave a screen.

Or if you have a GUI, simply run each ssh in a separate window and switch windows.

Last edited by berndbausch; 03-26-2019 at 05:16 PM.
 
1 members found this post helpful.
Old 03-28-2019, 02:56 PM   #3
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Original Poster
Rep: Reputation: 23
Hi berndbausch,

Thank you very much !

Best regards,
Zvika
 
  


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
Unable to launch "cinnamon-session-cinnamon" X session "cinnamon-session-cinnamon" -found; Falling back to default "session." xxxindigo Linux Mint 22 09-01-2019 09:21 AM
Session key renegotiation if session lasts longer than configured (e.g. an hour) then session keys needs to be renegotiated. dakshinya Linux - Newbie 1 02-04-2016 04:15 PM
Unable to launch application from workstation but able to launch from vnc chaitanya1982 Linux - Desktop 2 04-30-2010 03:52 AM
oneliner to launch an application in a specified directory wilsonsamm Linux - General 1 04-12-2009 10:43 AM
How do you find an application using launch application pnoise Linux - Newbie 1 01-11-2009 10:44 PM

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

All times are GMT -5. The time now is 06:27 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
Open Source Consulting | Domain Registration