Wilders Security Forums  

Go Back   Wilders Security Forums > Software, Hardware and General Services > all things UNIX
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old October 25th, 2010, 06:12 AM
cet's Avatar
cet cet is online now
Frequent Poster
 
Join Date: Sep 2006
Location: Turkey/İzmir
Posts: 813
Default How can I make applications be delayed at startup ?

When I boot the system I want Thunderbird to start automatically.But when I do this it gives errors like:pop3 not ready etc.If I can make thunderbird start 30 sec later it will not give that error.
I found a thread in the Ubuntu forums about this:but the thread is very old (2006) Can someone please tell me if this is going to work with the ubuntu 10.04 LTS.

Quote:
A possible workaround is a small shell script

#!/bin/sh
#wait for 30 seconds
sleep 30
#then start your program
firestarter

Save it as firestarter1 (or whatever name you want to give) in /usr/local/bin, make it executable.
Now in System->Preferences->Sessions->Star,Up Program, put firestarter1 instead of firestarter.
__________________
Ubuntu 12.04.2 LTS
  #2  
Old October 25th, 2010, 07:03 AM
Mrkvonic Mrkvonic is offline
Linux Systems Expert
 
Join Date: May 2005
Posts: 7,465
Default Re: How can I make applications be delayed at startup ?

You can make an init startup script that launches thunderbird. Or better still, check if popd service is up, and if it is, launch thunderbird, or if not, let it sleep for a few moments, then try again.

Mrk
__________________
http://www.dedoimedo.com

All your base are belong to us

Linux Systems Expert / Systems Programmer, Linux System Administrator, LPIC-1, LPIC-2 (WIP), GSEC, CCHD, CCHA

Last edited by Mrkvonic : October 25th, 2010 at 03:45 PM.
  #3  
Old October 25th, 2010, 07:59 AM
Ocky's Avatar
Ocky Ocky is offline
Very Frequent Poster
 
Join Date: May 2006
Location: George, S.Africa
Posts: 2,538
Default Re: How can I make applications be delayed at startup ?

In the Startup Applications I suppose you have added Thunderbird. If so then change the command line entry to bash -c "sleep X; /usr/bin/thunderbird where X is the delay you want (30 secs.)

You can check -there should be a file in /home/cetorceylan/.config/autostart

Can be opened:- gedit $HOME/.config/autostart/name_of_file

I hope that is correct as I have not done it before. Let us know.
__________________
Ubuntu Kubuntu Xubuntu Scientific Linux
  #4  
Old October 25th, 2010, 12:57 PM
cet's Avatar
cet cet is online now
Frequent Poster
 
Join Date: Sep 2006
Location: Turkey/İzmir
Posts: 813
Default Re: How can I make applications be delayed at startup ?

In the Startup Applications I suppose you have added Thunderbird. If so then change the command line entry to bash -c "sleep X; /usr/bin/thunderbird where X is the delay you want (30 secs.)

I did this and there is a file in home/ceylan...... I opened it with gedit but the file is blank.I waited but thunderbird did not open.
__________________
Ubuntu 12.04.2 LTS
  #5  
Old October 25th, 2010, 01:43 PM
Ocky's Avatar
Ocky Ocky is offline
Very Frequent Poster
 
Join Date: May 2006
Location: George, S.Africa
Posts: 2,538
Default Re: How can I make applications be delayed at startup ?

You don't need to open the file - unless to edit some lines. Remember to log out and log in for the setting you have entered in the command field to work.
__________________
Ubuntu Kubuntu Xubuntu Scientific Linux
  #6  
Old October 25th, 2010, 02:06 PM
cet's Avatar
cet cet is online now
Frequent Poster
 
Join Date: Sep 2006
Location: Turkey/İzmir
Posts: 813
Thumbs up Re: How can I make applications be delayed at startup ?

Ok I did manage to start Thunderbird 30 seconds later after booting up.This worked like a charm.
I created a new file and saved it in usr/bin/tbstart
I wrote this script:
#! /bin/sh
sleep 30;
thunderbird

And after I made the file executable with sudo chmod a+x /usr/bin/tbstart
And later I added this tbstart to the startup applications.

I am trying to learn Linux. And when I am successful in what I want, I feel happy.
__________________
Ubuntu 12.04.2 LTS
  #7  
Old October 25th, 2010, 02:14 PM
Ocky's Avatar
Ocky Ocky is offline
Very Frequent Poster
 
Join Date: May 2006
Location: George, S.Africa
Posts: 2,538
Default Re: How can I make applications be delayed at startup ?

Quote:
Originally Posted by cet
Ok I did manage to start Thunderbird 30 seconds later after booting up.This worked like a charm.
I created a new file and saved it in usr/bin/tbstart
I wrote this script:
#! /bin/sh
sleep 30;
thunderbird

And after I made the file executable with sudo chmod a+x /usr/bin/tbstart
And later I added this tbstart to the startup applications.

I am trying to learn Linux. And when I am successful in what I want, I feel happy.
Well done cet, I am also happy now having you teach me this method.
__________________
Ubuntu Kubuntu Xubuntu Scientific Linux
  #8  
Old October 25th, 2010, 02:26 PM
cet's Avatar
cet cet is online now
Frequent Poster
 
Join Date: Sep 2006
Location: Turkey/İzmir
Posts: 813
Default Re: How can I make applications be delayed at startup ?

I am a good student because my teachers here at Wilders are excellent.
__________________
Ubuntu 12.04.2 LTS
  #9  
Old October 25th, 2010, 02:58 PM
mack_guy911's Avatar
mack_guy911 mack_guy911 is offline
Very Frequent Poster
 
Join Date: Mar 2007
Posts: 2,498
Default Re: How can I make applications be delayed at startup ?

wow cet

even i never tried that thanks for teaching me

thanks to you Mrkvonic and ocky )
 

Wilders Security Forums > Software, Hardware and General Services > all things UNIX « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:27 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums