Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-04-14 13:24:36

the_jest
Member
Registered: 2011-10-09
Posts: 2

XFCE Session: run (e.g. SSH) commands in Terminal on startup?

I have a saved "Default" session, which restores a bunch of terminal windows/tabs on startup, to their appropriate workspace. I'd like to know how I can run commands in particular terminals at this time, so that, for example, I can automatically SSH into remote servers.

I've seen a few questions about scripting this in general, but not as part of Session.

Offline

#2 2023-04-14 21:31:50

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: XFCE Session: run (e.g. SSH) commands in Terminal on startup?

I'm pretty sure this isn't possible. It can restore the terminal but not the script/session running inside of it. I'm not sure that would be a good idea either, from a security point of view.

You can always write a shell script to create the windows and execute the commands - placing the terminals in the correct locations.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2023-04-16 18:27:50

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Re: XFCE Session: run (e.g. SSH) commands in Terminal on startup?

i run screen on the remote and make new connections running a screen command to access the session i had there under any user i login there (sometimes i do many, such as cloud instances).

Last edited by Skaperen (2023-04-16 18:28:55)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 523.59 KiB (Peak: 531.12 KiB) ]