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 ...
- 10-18-2007 #1Just 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
- 10-18-2007 #2
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
-------------------
- 10-19-2007 #3Just 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
- 10-19-2007 #4
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
-------------------
- 10-19-2007 #5Just 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
- 10-19-2007 #6
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
-------------------
- 10-19-2007 #7
Give more of an explanation of what you want to do.
- 10-22-2007 #8Just 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
- 10-22-2007 #9
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-22-2007 #10
i think Vineeta you better tell
which Linux distro ur using
this will make easy for us to tell youSystem 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


Reply With Quote
