Find the answer to your Linux question:
Results 1 to 10 of 10
hi I want to run gtk+ console application directly when system boots insted getting console of login.And system shld run that application only. inittab can do this (As i got ...
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    46

    help for inittab

    hi

    I want to run gtk+ console application directly when system boots insted getting console of login.And system shld run that application only.

    inittab can do this (As i got this information from forum).But How to run it exactly (which command i shld included in inittab).

    As my gtk+ output file is resided on home/user/data folder.

    Please help me or tell me if anyother way we can run directly application .


    Regards
    Vineeta7

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile

    Hi,
    It's better to place it in .profile file the user .
    I'm not sure placing GUI program in inittab will work
    anyway-if u wanna try check out do this,
    youapplication::boot:/usr/bin/yourapplication -u > /dev/null

    i assume ur executable is in /usr/bin directory
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  3. #3
    Just Joined!
    Join Date
    Sep 2007
    Posts
    46
    Yes I have included my gtk+ application executable file i.e test1
    Like this test1::boot:/usr/bin/test1 -u > /dev/null

    I have also included this in usr/bin file.

    But still it is not running automatically after login.

    Please help

    vineeta7

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    Quote Originally Posted by vineeta7 View Post
    Yes I have included my gtk+ application executable file i.e test1
    Like this test1::boot:/usr/bin/test1 -u > /dev/null

    I have also included this in usr/bin file.

    But still it is not running automatically after login.

    Please help

    vineeta7
    Hi vineeta,
    Sorry it's my mistake ,
    test1::boot:/usr/bin/test1 -u > /dev/null
    test1 can't be GUI application.
    As i said before,i don't think inittab supports GUI application to startup.
    First check whether u can run from ur command prompt?
    /usr/bin/test1

    If so then,
    place this entry in your .bash_profile file

    Go to your /home directory and type ls -a ..u can see your profile file
    HTH
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  5. #5
    Just Joined!
    Join Date
    Sep 2007
    Posts
    46
    Yes i can run it from /usr/bin/

    But how to set this in .bash_profile??? what is a command to run test1 from .bash_profile?

    please reply

    vineeta7

  6. #6
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568
    can you see .bash_profile file in your home directory??
    ls -a /home/oss

    i'm using oss user name.
    Just add you command there.
    else post your ls -a output here
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  7. #7
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    Give more of an explanation of what you want to do.

  8. #8
    Just Joined!
    Join Date
    Sep 2007
    Posts
    46

    Please tell me command

    If my output is test.out file.

    if i want to run it from vi editor then command is ./test

    if i want to run it through .bash_profile then what shald i write in the same file.

    This file is located in usr/bin and also run from that path..

    so tell me the command that shld i write in .bash_profile??

    Hope this u must hv understand my question..

    regards'
    vineeta7

  9. #9
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile

    Hi,
    Sorry,Still i dont get it.
    Anyway here is what one should do for any command to be executed during log in.
    For example i'll invoke xmms player during login.

    Step 1: find path name of ur executable.
    $which xmms
    /usr/bin/xmms
    Step 2:Now open .bash_profile
    and place this entry.

    $vi .bash_profile
    /usr/bin/xmms &

    HTH
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  10. #10
    Linux Newbie bunty82's Avatar
    Join Date
    Sep 2007
    Location
    Asia
    Posts
    130
    i think Vineeta you better tell
    which Linux distro ur using
    this will make easy for us to tell you
    System Configuration
    OS#Windows Xp pro Sp2
    Intel Core 2 Duo 2.2ghz
    Intel motherboard DG965ry
    Nvidia graphic card 512mb
    2 gb ram
    250gb Sata segate HDD
    160gb sata segate hdd
    D link ethernetcard
    Lg dvd writer
    Lg cd writer

Posting Permissions

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