Calling Calamaris from PHP file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Akkad
    New Member
    • Jun 2007
    • 18

    #1

    Calling Calamaris from PHP file

    i am trying to call calamaris through this code:

    [code=php]<?php
    echo shell_exec("./cal akkad -9");
    ?>[/code]

    but i am getting the following message:

    uuencode: command not found
    -----cal ------
    Code:
    #!/bin/bash
    cat `find /var/log/squid -name access.log* -mtime $2` | grep $1 \
    | /root/calamaris/calamaris/calamaris -a -P 60  -T 0 -r 400 -d 500 -u -o -w | uuencode _$1.html
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, Akkad.

    Try using the full path to uuencode.

    Comment

    • Akkad
      New Member
      • Jun 2007
      • 18

      #3
      but execuse me what is the path of uuencode i have wrote this command :
      whereis uuencode and gave me the following answer bu i am not sure it is the right path:

      usr/share/man/manhlp/uuencode.lp.gz

      i don't know if it is the right one

      Comment

      • pbmods
        Recognized Expert Expert
        • Apr 2007
        • 5821

        #4
        Try `which uuencode`.

        Comment

        • Akkad
          New Member
          • Jun 2007
          • 18

          #5
          Hi again, here is what i have got by executing which uuencode:

          which uuencode
          /usr/bin/which: no uuencode in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)

          Comment

          • pbmods
            Recognized Expert Expert
            • Apr 2007
            • 5821

            #6
            Heya, Akkad.

            You might not have uuencode installed on this system. Get in touch with your hosting provider's support team and then post back and let us know what they say.

            Comment

            Working...