Professional Web Applications Themes

.xinitrc - FreeBSD

How do you start two things ? exec unclutter -root exec enlightenment When i do this it only execute the first one...

  1. #1

    Default .xinitrc

    How do you start two things ?

    exec unclutter -root
    exec enlightenment

    When i do this it only execute the first one
    Gert Guest

  2. #2

    Default Re: .xinitrc

    On Fri, 1 Apr 2005 01:06:15 +0200
    Gert Cuykens <com> wrote:
     

    exec unclutter -root &
    exec enlightenment

    albi@scii.nl Guest

  3. #3

    Default Re: .xinitrc

    On Mar 31, 2005, at 6:06 PM, Gert Cuykens wrote: 

    Don't use exec, except possibly for the last command. Use an "&" after
    the command name for earlier commands which do not exit immediately.

    --
    -Chuck

    Charles Guest

  4. #4

    Default Re: .xinitrc

    On Fri, 1 Apr 2005 01:10:50 +0200, nl <nl> wrote: 
    >
    > exec unclutter -root &
    > exec enlightenment
    >[/ref]

    thx ps what is the difference between exec and without exec
    Gert Guest

  5. #5

    Default Re: .xinitrc

    On Fri, 1 Apr 2005 01:06:15 +0200
    Gert Cuykens <com> wrote:
     

    Hello,

    The 'exec' builtin (internal shell command) replaces the current process
    image (the shell itself) by the program in the argument. Instead of
    executing it as a children (separated) process, so when the process
    finishes it returns back to the shell (like typing a command). So when
    the shell replaces itself with 'unclutter', it is not the shell anymore,
    so it never comes back to execute 'enlightenment'.

    The solution can be to run the first command in the background
    (apart from the shell) like this:

    unclutter -root &
    exec enlightenment

    See sh(1) (section 'exec' and 'jobs').

    Best Regards,
    Ale
    Alejandro Guest

  6. #6

    Default Re: .xinitrc

    On Mar 31, 2005, at 6:17 PM, Gert Cuykens wrote: 

    Read "man sh":

    exec [command [arg ...]]
    Unless command is omitted, the shell process is replaced
    with the
    specified program (which must be a real program, not a
    shell
    built-in command or function). Any redirections on the
    exec com-
    mand are marked as permanent, so that they are not undone
    when
    the exec command finishes.

    --
    -Chuck

    Charles Guest

  7. #7

    Default Re: .xinitrc

    On Thu, 31 Mar 2005 18:26:44 -0500, Charles Swiger <com> wrote: 
    >
    > Read "man sh":
    >
    > exec [command [arg ...]]
    > Unless command is omitted, the shell process is replaced
    > with the
    > specified program (which must be a real program, not a
    > shell
    > built-in command or function). Any redirections on the
    > exec com-
    > mand are marked as permanent, so that they are not undone
    > when
    > the exec command finishes.
    >[/ref]

    ok thx
    Gert Guest

Similar Threads

  1. vncserver not sourcing .xinitrc
    By Johann in forum Debian
    Replies: 3
    Last Post: August 16th, 03:50 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139