LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-13-2007, 11:11 AM   #1
RVickers
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, 01:21 PM   #2
scompa
Member
 
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, 09:16 PM   #3
felixc
Member
 
Registered: Jul 2005
Distribution: Debian
Posts: 94

Rep: Reputation: Disabled
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 "custom.sh" every hour, on the hour, without producing any output, you'd enter this:

0 * * * * custom.sh > /dev/null
 
Old 07-16-2007, 09:39 PM   #4
Lsatenstein
Member
 
Registered: Jul 2005
Location: Montreal Canada
Distribution: Fedora 31and Tumbleweed) Gnome versions
Posts: 311
Blog Entries: 1

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


Reply


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 03:19 PM
Run GUI Program without Desktop slacky Debian 4 02-06-2007 07:35 PM
Cant login on desktop manager-ubuntu 5.10 metamorphics Ubuntu 1 02-17-2006 08:52 AM
configuring desktop icon to run a program with wine tybaldchina Linux - Software 3 01-17-2006 01:18 AM
Run program from root login as non-priveledged user? pr0wl3r Linux - Security 3 08-17-2004 10:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:01 AM.

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