Help Desk Software & Beyond
May 22, 2012, 12:52:30 AM *
Welcome, Guest. Please login or register.
To post messages you need to register. We apologize for inconvenience, but this is to prevent spam.
Registration is instant (no email verification) and we do not ask for any personal information.

Login with username, password and session length
News: Welcome to Help Desk Software forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Email Piping problem  (Read 1315 times)
SteveG
Newbie
*

Karma: 0
Posts: 5


View Profile
« on: January 15, 2007, 09:23:48 PM »

Hi all,

I have a problem with setting the email piping. Piping wasn't available on my server, so i set up the POP2PIPE Perl script.

Now it works when I call it via my web browser and the emails go through as expected and a txt log records the event.

So I've tried to set up a cron job to automate this but a funny thing happens, the cgi registers that it has worked via a different txt log, this log has appeared in the base directory, not in the directory where all the other ticket cgi stuff is or where the previous txt log is, and the emails don't go through.

I've played around with this quite a bit but can't get it to work

My host suggests that I need the correct syntax to use in the cron.

Can anyone help with this?
Logged
Alex
Administrator
Hero Member
*****

Karma: 22
Posts: 605



View Profile WWW
« Reply #1 on: January 16, 2007, 02:20:55 PM »

When executing pop2pipe via browser the TTX scrips folder is current (Apache does this automatically). When running cron job current folder is anything but the TTX scripts folder. I would suggest modifying cron entry

/path/to/some/folder/pop2pipe.cgi => cd /path/to/some/folder;./pop2pipe.cgi





Logged

Follow me on: LinkedIn
SteveG
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #2 on: January 16, 2007, 09:33:03 PM »

Hi Alex

Thanks very much, that did the trick nicely
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!
Page created in 0.019 seconds with 18 queries.