Open console and run a program in it with one command? | pressku.com

Trending 1 month ago

How to Open a console and tally a programme successful it pinch 1 command?

gnome-terminal -e "bash -c echo 123;bash" #is tried out.

OS is RHEL 8.2

but I americium getting nan pursuing error.

[root@localhost VEXT]# gnome-terminal -e "bash -c echo 123;bash" # Option “-e” is deprecated and mightiness beryllium removed successful a later type of gnome-terminal. # Use “-- ” to terminate nan options and put nan bid statement to execute aft it. # watch_fast: "/org/gnome/desktop/interface/" (establishing: 0, active: 0) # watch_fast: "/org/gnome/settings-daemon/peripherals/mouse/" (establishing: 0, active: 0) # watch_fast: "/org/gnome/desktop/sound/" (establishing: 0, active: 0) # watch_fast: "/org/gnome/desktop/privacy/" (establishing: 0, active: 0) # watch_fast: "/org/gnome/desktop/wm/preferences/" (establishing: 0, active: 0) # watch_fast: "/org/gnome/settings-daemon/plugins/xsettings/" (establishing: 0, active: 0) # watch_fast: "/org/gnome/desktop/a11y/" (establishing: 0, active: 0) # watch_established: "/org/gnome/desktop/interface/" (establishing: 1) # watch_established: "/org/gnome/settings-daemon/peripherals/mouse/" (establishing: 1) # watch_established: "/org/gnome/desktop/sound/" (establishing: 1) # watch_established: "/org/gnome/desktop/privacy/" (establishing: 1) # watch_established: "/org/gnome/desktop/wm/preferences/" (establishing: 1) # watch_established: "/org/gnome/settings-daemon/plugins/xsettings/" (establishing: 1) # watch_established: "/org/gnome/desktop/a11y/" (establishing: 1) No protocol specified # Could not unfastened X display # Error constructing proxy for :1.73:/org/gnome/Terminal/Factory0: The relationship is closed # Failed to usage specified server: The relationship is closed # Falling backmost to default server. # Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: The relationship is closed

I person a seen present : how tin I unfastened a other console and tally a programme successful it pinch 1 command?

None of nan solutions works.

I want to see this bid connected crontab reboot options. Want to fireup a commandline pinch an executable running. With su login and without su login.

More
close