Announcement

Collapse
No announcement yet.

CRON

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    CRON



    ------=_NextPart_000_0434_01C1320B.A8204240
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable

    =20
    Dear All,

    I had this working on one of my virtual servers before, but now I
    cannot get it to work. I am trying to get a CRON to run, but cannot
    seem to make it work:

    In my cronlist file I have:

    MAILTO=3D"[email protected]"
    0-60/2 * * * * /usr/home/nerdboy2/autofunct.sh

    I want this to run every 2 minutes until I get it to work. Then it
    will be once an hour.

    In the autofunct.sh file I have this:

    #!/usr/local/bin/tcsh=20
    /usr/local/bin/virtual
    /usr/local/etc/httpd/vhosts/lotto/webroot/cgi-bin/miva
    /lotto/lib/autofunct.mv

    I want to execute the file:
    www.yourlottosite.com/lotto/lib/autofunct.mv

    If I run from the TELNET Command Line the following: virtual
    /usr/local/etc/httpd/vhosts/lotto/webroot/cgi-bin/miva
    /lotto/lib/autofunct.mv

    I get this on the screen:

    /lotto/lib/util.mv: Line 765: MvSMTP: Runtime Error: Error
    connecting to
    'smtp.yourlottosite.com': 5.0.0 HELO requires domain address: Please
    ensure tha
    t Miva is able to determine the server's DNS name

    But, if you run from the browser the following:
    www.yourlottosite.com/lotto/lib/autofunct.mv, the script works OK.

    Any suggestions?

    I am not getting any indications at all from the server even while
    watching TOP the CRON is doing anything at all.

    Thank You,

    Jeffrey R. Collins
    1-858-693-6250
    <A HREF ="http://www.nerdboyinc.com">http://www.nerdboyinc.com</A>
    Store Administrator: <A HREF ="http://www.ebaygear.com">http://www.ebaygear.com</A>

    <A HREF ="http://www.yourlottosite.com">http://www.yourlottosite.com</A>

    Owner/ Driver Legends Car
    SCLA #99
    <A HREF ="http://www.nbiracing.com">http://www.nbiracing.com</A>

    For Customer Service and Support,
    please use the Nerd Boy Help Desk:
    <A HREF ="http://www.nerdboyinc.com/helpdesk.html">http://www.nerdboyinc.com/helpdesk.html</A>



    ------=_NextPart_000_0434_01C1320B.A8204240--

    #2
    CRON



    Dear All,

    Sorry, posted to wrong group.

    Thank You,

    Jeffrey R. Collins
    1-858-693-6250
    <A HREF ="http://www.nerdboyinc.com">http://www.nerdboyinc.com</A>
    Store Administrator: <A HREF ="http://www.ebaygear.com">http://www.ebaygear.com</A>

    <A HREF ="http://www.yourlottosite.com">http://www.yourlottosite.com</A>

    Owner/ Driver Legends Car
    SCLA #99
    <A HREF ="http://www.nbiracing.com">http://www.nbiracing.com</A>

    For Customer Service and Support,
    please use the Nerd Boy Help Desk:
    <A HREF ="http://www.nerdboyinc.com/helpdesk.html">http://www.nerdboyinc.com/helpdesk.html</A>


    ----- Original Message -----
    From: "Nerd Boy Help Desk" <[email protected]>
    To: "Merchant Users" <[email protected]>
    Sent: Friday, August 31, 2001 10:56 AM
    Subject: [mru] CRON



    Dear All,

    I had this working on one of my virtual servers before, but now I cannot
    get it to work. I am trying to get a CRON to run, but cannot seem to make
    it work:

    In my cronlist file I have:

    MAILTO="[email protected]"
    0-60/2 * * * * /usr/home/nerdboy2/autofunct.sh

    I want this to run every 2 minutes until I get it to work. Then it will
    be once an hour.

    In the autofunct.sh file I have this:

    #!/usr/local/bin/tcsh
    /usr/local/bin/virtual
    /usr/local/etc/httpd/vhosts/lotto/webroot/cgi-bin/miva
    /lotto/lib/autofunct.mv

    I want to execute the file: www.yourlottosite.com/lotto/lib/autofunct.mv

    If I run from the TELNET Command Line the following: virtual
    /usr/local/etc/httpd/vhosts/lotto/webroot/cgi-bin/miva
    /lotto/lib/autofunct.mv

    I get this on the screen:

    /lotto/lib/util.mv: Line 765: MvSMTP: Runtime Error: Error connecting to
    'smtp.yourlottosite.com': 5.0.0 HELO requires domain address: Please ensure
    tha
    t Miva is able to determine the server's DNS name

    But, if you run from the browser the following:
    www.yourlottosite.com/lotto/lib/autofunct.mv, the script works OK.

    Any suggestions?

    I am not getting any indications at all from the server even while
    watching TOP the CRON is doing anything at all.

    Thank You,

    Jeffrey R. Collins
    1-858-693-6250
    <A HREF ="http://www.nerdboyinc.com">http://www.nerdboyinc.com</A>
    Store Administrator: <A HREF ="http://www.ebaygear.com">http://www.ebaygear.com</A>

    <A HREF ="http://www.yourlottosite.com">http://www.yourlottosite.com</A>

    Owner/ Driver Legends Car
    SCLA #99
    <A HREF ="http://www.nbiracing.com">http://www.nbiracing.com</A>

    For Customer Service and Support,
    please use the Nerd Boy Help Desk:
    <A HREF ="http://www.nerdboyinc.com/helpdesk.html">http://www.nerdboyinc.com/helpdesk.html</A>





    Comment


      #3
      CRON



      Hi,
      Could it be your browser sending an http host: header that miva uses to
      determine the sender domain? If you use telnet, you certainly aren't
      sending that header.
      HTH,
      Mark Ingles


      At 10:56 AM 8/31/2001 -0700, Nerd Boy Help Desk wrote:
      >
      >Dear All,
      >
      > <snip>
      > If I run from the TELNET Command Line the following: virtual
      > /usr/local/etc/httpd/vhosts/lotto/webroot/cgi-bin/miva /lotto/lib/autofunct.mv
      >
      > I get this on the screen:
      >
      > /lotto/lib/util.mv: Line 765: MvSMTP: Runtime Error: Error connecting to
      > 'smtp.yourlottosite.com': 5.0.0 HELO requires domain address: Please
      > ensure tha
      >t Miva is able to determine the server's DNS name
      >
      > But, if you run from the browser the following:
      > www.yourlottosite.com/lotto/lib/autofunct.mv, the script works OK.
      ><snip>
      >Jeffrey R. Collins
      >1-858-693-6250
      ><A HREF ="http://www.nerdboyinc.com">http://www.nerdboyinc.com</A>
      >Store Administrator: <A HREF ="http://www.ebaygear.com">http://www.ebaygear.com</A>
      <clip>


      Comment


        #4
        CRON



        Jeff,

        You have to set the 'virtualhostvariable' correctly. I describe all details
        here:

        http://mivo.truxoft.com/art0017.htm

        Ivo
        http://mivo.truxoft.com


        -----Original Message-----
        From: Nerd Boy Help Desk


        Dear All,

        I had this working on one of my virtual servers before, but now I cannot
        get it to work. I am trying to get a CRON to run, but cannot seem to make
        it work:

        In my cronlist file I have:

        MAILTO="[email protected]"
        0-60/2 * * * * /usr/home/nerdboy2/autofunct.sh

        I want this to run every 2 minutes until I get it to work. Then it will
        be once an hour.

        In the autofunct.sh file I have this:

        #!/usr/local/bin/tcsh
        /usr/local/bin/virtual
        /usr/local/etc/httpd/vhosts/lotto/webroot/cgi-bin/miva
        /lotto/lib/autofunct.mv

        I want to execute the file: www.yourlottosite.com/lotto/lib/autofunct.mv

        If I run from the TELNET Command Line the following: virtual
        /usr/local/etc/httpd/vhosts/lotto/webroot/cgi-bin/miva
        /lotto/lib/autofunct.mv

        I get this on the screen:

        /lotto/lib/util.mv: Line 765: MvSMTP: Runtime Error: Error connecting to
        'smtp.yourlottosite.com': 5.0.0 HELO requires domain address: Please ensure
        tha
        t Miva is able to determine the server's DNS name

        But, if you run from the browser the following:
        www.yourlottosite.com/lotto/lib/autofunct.mv, the script works OK.

        Any suggestions?

        I am not getting any indications at all from the server even while
        watching TOP the CRON is doing anything at all.

        Thank You,



        Comment


          #5
          CRON



          Yes, if you're on a unix system, instead of calling Miva manually,
          use a text-based web browser, so your cron job is like this if you're
          on linux using a nice cron:

          */2 * * * * /usr/local/bin/lynx -dump
          <A HREF ="http://www.yourlottosite.com/lotto/lib/autofunct.mv > /dev/null 2>&1">http://www.yourlottosite.com/lotto/lib/autofunct.mv > /dev/null 2>&1</A>

          Wrap that into one line and you have a cron job that will run
          every two minutes calling the 'lynx' text-based web browser
          to retrieve the web page of your choice in a non-interactive
          mode and the output of the job is set to /dev/null so you're
          not bothered with it. If you're not using a nice cron, you'll
          have to change that initial */2 into a 2,4,6,8,10,12... you
          get the idea.

          There are perl libraries, the wget program and other text-based
          browsers that will do the same thing.

          Dave



          > -----Original Message-----
          > From: Mark Ingles [mailto:[email protected]]
          > Sent: Friday, August 31, 2001 2:06 PM
          > To: Nerd Boy Help Desk; Merchant Users
          > Subject: Re: [mru] CRON
          >
          >
          > Hi,
          > Could it be your browser sending an http host: header that
          > miva uses to
          > determine the sender domain? If you use telnet, you certainly aren't
          > sending that header.
          > HTH,
          > Mark Ingles
          >
          >
          > At 10:56 AM 8/31/2001 -0700, Nerd Boy Help Desk wrote:
          > >
          > >Dear All,
          > >
          > > <snip>
          > > If I run from the TELNET Command Line the following: virtual
          > > /usr/local/etc/httpd/vhosts/lotto/webroot/cgi-bin/miva
          > /lotto/lib/autofunct.mv
          > >
          > > I get this on the screen:
          > >
          > > /lotto/lib/util.mv: Line 765: MvSMTP: Runtime Error:
          > Error connecting to
          > > 'smtp.yourlottosite.com': 5.0.0 HELO requires domain
          > address: Please
          > > ensure tha
          > >t Miva is able to determine the server's DNS name
          > >
          > > But, if you run from the browser the following:
          > > www.yourlottosite.com/lotto/lib/autofunct.mv, the script works OK.
          > ><snip>
          > >Jeffrey R. Collins
          > >1-858-693-6250
          > ><A HREF ="http://www.nerdboyinc.com">http://www.nerdboyinc.com</A>
          > >Store Administrator: <A HREF ="http://www.ebaygear.com">http://www.ebaygear.com</A>
          > <clip>
          >
          >

          Comment

          Working...
          X