Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 48

Thread: cron job not running

  1. #31
    ken yap NNTP User

    Default Re: cron job not running


    The output has gone to /tmp/navicat.out due to these lines in the
    script.

    > # hide error/stdout message
    > if test "z$WINEDEBUG" = z ; then
    > exec >/tmp/navicat.output 2>&1
    > fi


    Please post what's in it and don't bother with -vx or schedule.log any
    more.


    --
    ken_yap
    ------------------------------------------------------------------------
    ken_yap's Profile: http://forums.opensuse.org/member.php?userid=221
    View this thread: http://forums.opensuse.org/showthread.php?t=404918


  2. #32
    Ski K2 NNTP User

    Default Re: cron job not running


    navicat.output here


    Code:
    --------------------
    # install inf
    for infcmd in wine.inf/DefaultInstall ; do
    inffile=`echo $infcmd | cut -d '/' -f 1`
    inftype=`echo $infcmd | cut -d '/' -f 2`

    runreg=0
    if [ -f "$WINEPREFIX/drive_c/windows/inf.done/$inffile" ] ; then
    diff -q "$WINEPREFIX/drive_c/windows/inf/$inffile" "$WINEPREFIX/drive_c/windows/inf.done/$inffile" >/dev/null 2>&1
    if [ $? -ne 0 ] ; then
    runreg=1
    fi
    else
    runreg=1
    fi

    if [ $runreg -gt 0 ] ; then
    "${WINELOADER:-wine}" rundll32.exe setupapi.dll,InstallHinfSection $inftype 128 $inffile
    cp "$WINEPREFIX/drive_c/windows/inf/$inffile" "$WINEPREFIX/drive_c/windows/inf.done/$inffile"
    fi
    done
    echo $infcmd | cut -d '/' -f 1
    echo $infcmd | cut -d '/' -f 2

    # run Navicat.exe
    exec "${WINELOADER:-wine}" "$navicat_root/Navicat/Navicat.exe" "$1" "$2" "$3" "$4" "$5" "$6" "$7"
    fixme:actctxarse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls"
    errle:CoGetClassObject class {88d969c0-f192-11d4-a65f-0040963251e5} not registered
    errle:create_server class {88d969c0-f192-11d4-a65f-0040963251e5} not registered
    errle:CoGetClassObject no class object {88d969c0-f192-11d4-a65f-0040963251e5} could be created for context 0x5
    errle:CoGetClassObject class {88d969c0-f192-11d4-a65f-0040963251e5} not registered
    errle:create_server class {88d969c0-f192-11d4-a65f-0040963251e5} not registered
    errle:CoGetClassObject no class object {88d969c0-f192-11d4-a65f-0040963251e5} could be created for context 0x5
    errle:CoGetClassObject class {88d969c0-f192-11d4-a65f-0040963251e5} not registered
    errle:create_server class {88d969c0-f192-11d4-a65f-0040963251e5} not registered
    errle:CoGetClassObject no class object {88d969c0-f192-11d4-a65f-0040963251e5} could be created for context 0x5
    same error repeated numerous times, perhaps for each database to be synced
    --------------------


    --
    Ski_K2
    ------------------------------------------------------------------------
    Ski_K2's Profile: http://forums.opensuse.org/member.php?userid=6818
    View this thread: http://forums.opensuse.org/showthread.php?t=404918


  3. #33
    Ski K2 NNTP User

    Default Re: cron job not running


    I've been trying another idea of launching the script in gnome-terminal

    0 13 * * * export DISPLAY=:0 &&
    gnome-terminal -e=/home/pathp/Navicat/cron_all.sh > /tmp/schedule.log
    2>&1

    contents of cron_all.sh
    > #!/bin/sh
    > /home/pathp/Navicat/start_navicat /schedule "Rack 5 to Local All"


    This give me the error
    Missing argument for -e


    --
    Ski_K2
    ------------------------------------------------------------------------
    Ski_K2's Profile: http://forums.opensuse.org/member.php?userid=6818
    View this thread: http://forums.opensuse.org/showthread.php?t=404918


  4. #34
    ken yap NNTP User

    Default Re: cron job not running


    I'm not sufficiently familiar with wine to say what causes those errors.
    Definitely something is missing from the cron environment that's causing
    wine to not work the same way, only question is what.

    The argument for -e should be separated by a space and quoted to
    prevent breaking at spaces.


    Code:
    --------------------
    0 13 * * * export DISPLAY=:0 && gnome-terminal -e '/home/pathp/Navicat/cron_all.sh'
    --------------------


    Don't bother with schedule.log any more, there's nothing more that can
    tell us. The info is in navicat.output.

    I looked up navicat and it seems to be a GUI tool. Are you sure about
    your previous claim that it doesn't require a windowing environment?

    Do you have any settings in your environment that point to
    configuration files or anything like that for WINE or Navicat?


    --
    ken_yap
    ------------------------------------------------------------------------
    ken_yap's Profile: http://forums.opensuse.org/member.php?userid=221
    View this thread: http://forums.opensuse.org/showthread.php?t=404918


  5. #35
    Ski K2 NNTP User

    Default Re: cron job not running


    > I looked up navicat and it seems to be a GUI tool. Are you sure about
    > your previous claim that it doesn't require a windowing environment?


    I'm not sure of how to answer this except that I know if I open a
    terminal from gnome and run this
    sh /home/pathp/Navicat/start_navicat /schedule "Rack 5 to Local All"

    it works.

    Perhaps opening the terminal provides the windowing environment?

    That's why I though of trying the gnome-terminal approach.

    I'll look for config files for navicat.


    --
    Ski_K2
    ------------------------------------------------------------------------
    Ski_K2's Profile: http://forums.opensuse.org/member.php?userid=6818
    View this thread: http://forums.opensuse.org/showthread.php?t=404918


  6. #36
    ken yap NNTP User

    Default Re: cron job not running


    But if you run it from a gnome-terminal, you still have a windowing
    system accessible to it. Any GUI programs you start from the terminal
    will display to the screen. I would be more convinced if you ssh'ed from
    another machine (without X forwarding) and you were able to run the
    program in a pure CLI environment. And I strongly suspect that WINE
    requires a GUI environment, after all, it's a Windows emulator.

    You could try this, without having to go through gnome-terminal:

    0 13 * * * DISPLAY=:0 /home/pathp/Navicat/start_navicat /schedule "Rack
    5 to Local All"

    If it works then that's the way to do it, and you will have to be
    logged on GNOME at that time.


    --
    ken_yap
    ------------------------------------------------------------------------
    ken_yap's Profile: http://forums.opensuse.org/member.php?userid=221
    View this thread: http://forums.opensuse.org/showthread.php?t=404918


  7. #37
    Ski K2 NNTP User

    Default Re: cron job not running


    ken_yap;1928057 Wrote:
    > But if you run it from a gnome-terminal, you still have a windowing
    > system accessible to it. Any GUI programs you start from the terminal
    > will display to the screen. I would be more convinced if you ssh'ed from
    > another machine (without X forwarding) and you were able to run the
    > program in a pure CLI environment. And I strongly suspect that WINE
    > requires a GUI environment, after all, it's a Windows emulator.
    >
    > You could try this, without having to go through gnome-terminal:
    >
    > 0 13 * * * DISPLAY=:0 /home/pathp/Navicat/start_navicat /schedule "Rack
    > 5 to Local All"
    >
    > If it works then that's the way to do it, and you will have to be
    > logged on GNOME at that time.


    I'll try this as it seems navicat/wine does require x


    --
    Ski_K2
    ------------------------------------------------------------------------
    Ski_K2's Profile: http://forums.opensuse.org/member.php?userid=6818
    View this thread: http://forums.opensuse.org/showthread.php?t=404918


  8. #38
    Ski K2 NNTP User

    Default Re: cron job not running


    ken_yap;1928057 Wrote:
    > But if you run it from a gnome-terminal, you still have a windowing
    > system accessible to it. Any GUI programs you start from the terminal
    > will display to the screen. I would be more convinced if you ssh'ed from
    > another machine (without X forwarding) and you were able to run the
    > program in a pure CLI environment. And I strongly suspect that WINE
    > requires a GUI environment, after all, it's a Windows emulator.
    >
    > You could try this, without having to go through gnome-terminal:
    >
    > 0 13 * * * DISPLAY=:0 /home/pathp/Navicat/start_navicat /schedule "Rack
    > 5 to Local All"
    >
    > If it works then that's the way to do it, and you will have to be
    > logged on GNOME at that time.


    navicat.output

    > fixme:actctxarse_depend_manifests Could not find dependent assembly
    > L"Microsoft.Windows.Common-Controls"
    > No protocol specified
    > err:imagelist:ImageList_ReplaceIcon no color!
    > err:imagelist:ImageList_ReplaceIcon no color!
    > err:imagelist:ImageList_ReplaceIcon no color!
    > err:imagelist:ImageList_ReplaceIcon no color!
    > No protocol specified
    > No protocol specified
    > No protocol specified
    > Application tried to create a window, but no driver could be loaded.
    > Make sure that your X server is running and that $DISPLAY is set
    > correctly.
    > Application tried to create a window, but no driver could be loaded.
    > Make sure that your X server is running and that $DISPLAY is set
    > correctly.
    > wine: Unhandled exception 0x0eedfade at address 0x0000:0x7b843f20
    > (thread 0009), starting debugger...



    --
    Ski_K2
    ------------------------------------------------------------------------
    Ski_K2's Profile: http://forums.opensuse.org/member.php?userid=6818
    View this thread: http://forums.opensuse.org/showthread.php?t=404918


  9. #39
    Ski K2 NNTP User

    Default Re: cron job not running


    ken_yap;1928048 Wrote:
    > I'm not sufficiently familiar with wine to say what causes those errors.
    > Definitely something is missing from the cron environment that's causing
    > wine to not work the same way, only question is what.
    >
    > The argument for -e should be separated by a space and quoted to
    > prevent breaking at spaces.
    >
    > >

    Code:
    --------------------
    > > 0 13 * * * export DISPLAY=:0 && gnome-terminal -e '/home/pathp/Navicat/cron_all.sh'

    --------------------
    > >

    >
    > Don't bother with schedule.log any more, there's nothing more that
    > can tell us. The info is in navicat.output.
    >
    > I looked up navicat and it seems to be a GUI tool. Are you sure about
    > your previous claim that it doesn't require a windowing environment?
    >
    > Do you have any settings in your environment that point to
    > configuration files or anything like that for WINE or Navicat?


    contents of /home/pathp/Navicat/wine
    'here' (http://www.ibtest.com/wine.tar.gz)


    --
    Ski_K2
    ------------------------------------------------------------------------
    Ski_K2's Profile: http://forums.opensuse.org/member.php?userid=6818
    View this thread: http://forums.opensuse.org/showthread.php?t=404918


  10. #40
    ken yap NNTP User

    Default Re: cron job not running


    Yeah, it needs a GUI environment. Do this:

    echo $DISPLAY

    and set DISPLAY to that value in the cron job. Probably also set $HOME
    also:

    HOME=/home/pathp DISPLAY=<thatvalueabove> /home/pathp/blahblah


    --
    ken_yap
    ------------------------------------------------------------------------
    ken_yap's Profile: http://forums.opensuse.org/member.php?userid=221
    View this thread: http://forums.opensuse.org/showthread.php?t=404918


Page 4 of 5 FirstFirst ... 2345 LastLast

Posting Permissions

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