Find the answer to your Linux question:
Results 1 to 4 of 4
In a script that I run manually after I have logged in, I have the following: alias kq='konqueror &' The intention is to run konqueror in the background. What happens ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Location
    Kent, Uk
    Posts
    3

    Running Konqueror in Background

    In a script that I run manually after I have logged in, I have the following:

    alias kq='konqueror &'

    The intention is to run konqueror in the background. What happens is as follows

    A. I run kq; it starts konqueror but does not return to the command prompt. I quit konqueror.

    B. I run kq again ; it starts konqueror and this time I get a the command prompt.

    If I quit konqueror and run kq for a 3rd time it behaves as in A. Quit and run it behaves as in B, and so on...

    Please can someone tell me what's occuring?

    Thank you - Mike

    Red Hat 5.1
    Konqueror 3.5.4-18.e15 using KDE 3.5.4-16.el5

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Well, at least it's consistent!

    Actually, it is better, and probably more consistent, to define the alias without the background '&', and then add it to the command line when desired as a background process as you would for any other tool. IE:
    Code:
    alias kq='konqueror'
    kq &
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Location
    Kent, Uk
    Posts
    3
    Unfortuately I am none the wiser and now other forum users think that my question has probably been answer. Thanks Rubberman

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Well, without looking at the system, the reasons why it is behaving the way it is for you probably has a simple explanation, but I don't know what it is. Sometimes the easiest way to solve a problem is to take another approach, which is what I was suggesting. Whether it is "solved" or not that way can only be determined by you trying it.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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