You are Here:
Download Linux Lite 5.6 Final today - See Release Announcements

X Close Ad
X Close Ad
lxterminal Background Jobs

Author (Read 2826 times)

0 Members and 1 Guest are viewing this topic.

lxterminal Background Jobs
« on: August 06, 2016, 05:03:25 PM »


  • New to Forums
  • *
  • 2
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 3.0 64bit
I have a script, called logs, that prints log information inside an lxterminal window.

From inside lxterminal I can start it like this: logs &

It fills the screen with new data each minute, and I can also type quick commands which return information. For example ls or df.

All this works fine when I type the command, but I want a bash script to open an lxterminal and have logs start running in the background with the capability to type commands in as needed.

This bash script line will run, but not in the background: lxterminal -e 'bash -c "~/scripts/logs"'

I thought I could us "&" to get it to run in background, but it doesn't work.
This line doesn't run at all: lxterminal -e 'bash -c "~/scripts/logs"' &

I'm using this to open multiple terminal windows, and I want this one lxterminal window to start it's job in the background so commands can be entered.

Any ideas?

Thanks, koken


X Close Ad
X Close Ad

Download Linux Lite 5.6 Final today - See Release Announcements