nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

start program

This is a discussion on start program within the Getting started tutorials forums, part of the Linux Getting Started category; Hi, i would like to start a program automatically when i login to linux. Without X-server. is there an easy ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-26-2007, 06:53 PM
Junior Member
User
 
Join Date: Jun 2007
My distro: Fedora 6
Posts: 1
Rep Power: 0
schaapmansz is on a distinguished road
Default start program

Hi, i would like to start a program automatically when i login to linux. Without X-server. is there an easy way to do this?

Say i want to start ls -l after i login... how can i do that? (without a window manager like kde-autostart)

thnx for the effort
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-26-2007, 09:49 PM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 481
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Open .bash_profile in your home directory
Code:
cd
vi .bash_profile
Add a command such as
Code:
date
ls
Save file. Logout and login again.
__________________
May the force with you!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to compile a c program in freeBSD jkmb All about FreeBSD/OpenBSD/NetBSD 4 03-24-2008 08:01 PM
How to compile a c program in freeBSD jkmb All about FreeBSD/OpenBSD/NetBSD 0 01-21-2008 01:33 PM
is any one good in c program ? oronno Shell scripting 0 09-19-2007 01:04 PM
How to pass shell variable to awk program Shell scripting 4 06-23-2006 05:11 AM
HTML Program cannot open in cgi-bin folder sonaikar Linux software 5 02-04-2005 04:45 PM


All times are GMT +5.5. The time now is 04:24 AM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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