Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 07-13-2007, 10:11 AM   #1
LQ Newbie
Registered: Jul 2007
Distribution: Ubuntu 7.04
Posts: 4

Rep: Reputation: 0
Need to run a program after login on Ubuntu desktop 7.04

I would like to be able to run a program (Vmware's VMPlayer) automatically upon login. Is there anyway to do this?

Also is there a way to setup a command to run at a certain time on a certain date?

such as execute program.exe on aug 1, 2007 6pm

Thanks in advance.
Old 07-13-2007, 12:21 PM   #2
Registered: May 2006
Distribution: Slackware
Posts: 30

Rep: Reputation: 15
Go to System - Sessions and there u can add a startup program.
Old 07-13-2007, 08:16 PM   #3
Registered: Jul 2005
Location: Canada
Distribution: Ubuntu, Debian
Posts: 94

Rep: Reputation: 15
Absolutely. As scompa said, the System menu will contain Preferences, and in there you will find Sessions. That window will allow you to set up programs to run every time you start a session.

As for running programs at a specific time, there is an excellent utility called "cron" that is always included by default that lets you make things as intricate as you'd like (you can, for example, make it run every 10 minutes except on the hour every second day of the third week of every fourth month, if you'd like).

Setting up cron is done by running "crontab -e" (this will edit your personal crontab file). What to put in that file is up to you, and the syntax to use is very well documented on the web. As an example, if you want to run "" every hour, on the hour, without producing any output, you'd enter this:

0 * * * * > /dev/null
Old 07-16-2007, 08:39 PM   #4
Registered: Jul 2005
Location: Montreal Canada
Distribution: Fedora Core 6 XEN
Posts: 246
Blog Entries: 1

Rep: Reputation: 37
If you use gnome then go to System>>preferences>>sessions and add your session there.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu desktop login problem omisphere Linux - Desktop 1 03-20-2007 02:19 PM
Run GUI Program without Desktop slacky Debian 4 02-06-2007 06:35 PM
Cant login on desktop manager-ubuntu 5.10 metamorphics Ubuntu 1 02-17-2006 07:52 AM
configuring desktop icon to run a program with wine tybaldchina Linux - Software 3 01-17-2006 12:18 AM
Run program from root login as non-priveledged user? pr0wl3r Linux - Security 3 08-17-2004 09:52 PM

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration