Professional Web Applications Themes

Crontab Problem - UNIX Programming

Hi All, I am using : .. SunOS 5.8 .. Database is in Unix server .. I am using to access it Exceed I wrote a script that outputs data from a database as a textfile. When I run the script maually it works but when I schedule using corntab and it fails. It uses the default display of the server and cannot execute. We don't have a display on the server I added shell (set DISPLAY My IP address:0.0) shell (export DISPLAY) To export the display to my PC but still it fails. Please help. I am new to ...

  1. #1

    Default Crontab Problem

    Hi All,

    I am using :
    .. SunOS 5.8
    .. Database is in Unix server
    .. I am using to access it Exceed

    I wrote a script that outputs data from a database as a textfile. When
    I run the script maually it works but when I schedule using corntab
    and it fails. It uses the default display of the server and cannot
    execute. We don't have a display on the server

    I added
    shell (set DISPLAY My IP address:0.0)
    shell (export DISPLAY)
    To export the display to my PC but still it fails.

    Please help. I am new to unix so please help


    Thank you so much in advance

    Kidus
    Kidus Guest

  2. #2

    Default Re: Crontab Problem

    In article <google.com>,
    Kidus <com> wrote: 

    If it outputs to a textfile, why do you expect it to show up in a display?
     

    Where did you put those commands? In your script it should be:

    DISPLAY=myaddress:0.0
    export DISPLAY

    --
    Barry Margolin, com
    Level(3), Woburn, MA
    *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
    Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
    Barry Guest

  3. #3

    Default Re: Crontab Problem

    First problem, if your PC is Windoze, unless you have a X11 program running, it
    can't handle displaying your output, you need to send it to another *nix
    machine. That machine must allow the Sun to display on it. A command like:

    xhost +Sun's_ip_address

    should do it.

    Roger

    RSmith6559 Guest

Similar Threads

  1. Crontab
    By Antigoni in forum Linux / Unix Administration
    Replies: 2
    Last Post: June 4th, 12:15 PM
  2. crontab manipulation from php
    By Arkascha in forum PHP Development
    Replies: 2
    Last Post: November 12th, 09:49 PM
  3. What is wrong with this crontab?
    By Stephen Hooper in forum Linux / Unix Administration
    Replies: 4
    Last Post: August 6th, 05:11 AM
  4. crontab bug?
    By LeVA in forum Debian
    Replies: 1
    Last Post: August 4th, 12:10 AM
  5. changes to crontab not effective
    By Jochen Daum in forum Debian
    Replies: 2
    Last Post: July 14th, 12:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139