Results 1 to 5 of 5

Thread: reopen STDERR STDIN STDOUT in switched workspace

  1. #1
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,053
    Distro
    Xubuntu 20.04 Focal Fossa

    reopen STDERR STDIN STDOUT in switched workspace

    i'm running a script or program that starts in one workspace in the display. it switches to a different workspace. i need for this script/program to work with the console in the new workspace. it needs to re-open STDERR STDIN and STDOUT to the console of the new workspace. it turn out that "/dev/tty" is still the console of the old workspace. how do i get "/dev/tty" updated to the new workspace so i can re-open STDERR STDIN and STDOUT? i may end up with a similar issue with virtual text consoles in the next related project.
    Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer

  2. #2
    currentshaft is offline Oops! My Coffee Cup is empty.
    Join Date
    May 2024
    Beans
    Hidden!

    Re: reopen STDERR STDIN STDOUT in switched workspace

    What exactly is meant by "workspace" in this context?

  3. #3
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,053
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: reopen STDERR STDIN STDOUT in switched workspace

    do "man wmctrl" and scroll down to the "-s" option. it is called many things. my program will run "wmctrl -s NN" to switch the display (being seen) to display number NN. these are virtual displays that operate like separate virtual desktops. the window manager manages this by making everything in the current workspace invisible (unexposed) then making everything in the target (NN) workspace visible and exposes everything. there may be other details about doing this that i am unaware of.

    i wonder how many Ubuntu users are aware of virtual workspaces.

    most of my actual X desktops (i usually run 12 to 18 of them) have 20 virtual workspaces. most are empty but a great many run an X terminal program with a near full screen (and its own shell).
    Last edited by Skaperen; August 8th, 2024 at 01:29 AM.
    Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer

  4. #4
    currentshaft is offline Oops! My Coffee Cup is empty.
    Join Date
    May 2024
    Beans
    Hidden!

    Re: reopen STDERR STDIN STDOUT in switched workspace

    .
    Last edited by currentshaft; 2 Weeks Ago at 12:48 AM.

  5. #5
    Join Date
    Jan 2010
    Location
    Wheeling WV USA
    Beans
    2,053
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: reopen STDERR STDIN STDOUT in switched workspace

    i already use screen for some cases. a solution for those cases might also be useful in the future, but the first need is for this particular need involving a jump to a different xterm.
    Mask wearer, Social distancer, System Administrator, Programmer, Linux advocate, Command Line user, Ham radio operator (KA9WGN/8, tech), Photographer (hobby), occasional tweetXer

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •