Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6855365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:44:58+00:00 2026-05-27T01:44:58+00:00

I am running Ubuntu 11.10 (Unity interface) and I created a Bash script that

  • 0

I am running Ubuntu 11.10 (Unity interface) and I created a Bash script that uses ‘gnome-open’ to open a series of web pages I use every morning. When I manually execute the script in the Terminal, the bash script works just fine. Here’s a sample of the script (it’s all the same so I’ve shortened it):

#!/bin/bash

gnome-open 'https://docs.google.com';
gnome-open 'https://mail.google.com'; 

Since it seemed to be working well, I added a job to my crontab (mine, not root’s) to execute every weekday at a specific time.

Here’s the crontab entry:

30 10 * * 1,2,3,4,5 ~/bin/webcheck.sh

The problem is this error gets returned for every single ‘gnome-open’ command in the bash script:

GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
GConf Error: No D-BUS daemon running
Error: no display specified

I did some searching to try and figure this out. The first thing I tried was relaunching the daemon using SIGHUP:

killall -s SIGHUP gconfd-2

That didn’t work so I tried launching the dbus-daemon using this code from the manpage for dbus-launch:

## test for an existing bus daemon, just to be safe
         if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
## if not found, launch a new one
         eval `dbus-launch --sh-syntax --exit-with-session`
         echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
         fi

But that didn’t do anything.

I tried adding simply ‘dbus-launch’ at the top of my bash script and that didn’t work either.

I also tried editing the crontab to include the path to Bash, because I saw that suggestion on another thread but that didn’t work.

Any ideas on how I can get this up and running?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:44:58+00:00Added an answer on May 27, 2026 at 1:44 am

    Here is how the problem was solved. It turns out the issue was primarily caused by Bash not having access to an X window session (or at least that’s how I understood it). So my problem was solved by editing my crontab like so:

    30 10 * * 1,2,3,4,5 export DISPLAY=:0 && ~/bin/webcheck.sh
    

    The “export DISPLAY=:0” statement told cron which display to use. I found the answer on this archived Ubuntu forum after searching for “no display specified” or something like that:

    http://ubuntuforums.org/archive/index.php/t-105250.html

    So now, whenever I’m logged in, exactly at 10:30 my system will automatically launch a series of webpages that I need to look at every day. Saves me having to go through the arduous process of typing in my three-letter alias every time 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My web server is running Ubuntu 10.04. I want to use PHP in conjunction
I have a laptop running Ubuntu that I would like to act as a
I have a server that is running Ubuntu Linux Server Edition. I once had
I have a machine that is running Ubuntu Hardy, which provides its own RubyGems
I am running ubuntu server with Subversion 1.6.6. In windows I use the latest
My local machine is running Ubuntu 11.10. I use Eclipse Indigo as my IDE.
I am running ubuntu 10.10, and have rabbitvcs & svn installed, I have created
I am running Ubuntu. I have a folder Project, and in that folder I
I'm not aware that I changed anything and am running Ubuntu 10.10. Mercurial had
I'm running Ubuntu / nginx and php-fpm. When I open my website http://www.mydomain.com I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.