Kayako logo
Installation & Upgrading Questions and issues regarding the installation and upgrade procedure of SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
blaforce Offline
New Member
 
Posts: 21
Join Date: Aug 2007
Location: South Lake Tahoe, CA
Unhappy wget Dos Window Popup Problem - 23-08-2007, 09:23 PM

See last post for how I setup the Task Scheduler to work with php-win.exe instead of wget.
Has anyone been able to stop the dos window from flashing up in Windows? It's very tacky to have a dos window pop up every 5 minutes on a server when running the cron tasks under windows. I'm using the -q option in the wget command line put the dos window still opens and closes on the console.
Thanks, Brian

Last edited by blaforce; 31-08-2007 at 11:27 PM. Reason: solved
   
Reply With Quote
  (#2) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
23-08-2007, 10:24 PM

Hi Brian,

I don't get any popup running wget as a scheduled jon on winserver2003

Here's what I'm using to run it:

C:\wget\wget.exe -O nul -a wgetLog "http://yoursite.com/support/cron/index.php?_t=parser"

Maybe sending the output to nul ( "-O nul" option) will stop it?

HTH,

Rich


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!
   
Reply With Quote
  (#3) Old
blaforce Offline
New Member
 
Posts: 21
Join Date: Aug 2007
Location: South Lake Tahoe, CA
23-08-2007, 10:56 PM

Then it must be because I'm getting an error: Unsupported Scheme. "D:\Programs Files\GnuWin32\bin\wget.exe" -O nul -a wgetLog.txt https://localhost/esupport/cron/index.php?_t=parser
Thanks for posting your command line. The log shows me the problem. I thought it was working.
Update: looks like some versions of wget do not work with https urls.

Last edited by blaforce; 23-08-2007 at 11:16 PM.
   
Reply With Quote
  (#4) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
23-08-2007, 11:21 PM

Looks like you could also try to add:

C:\wget\wget.exe -O nul -a wgetLog --no-check-certificate "https://s


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!
   
Reply With Quote
  (#5) Old
blaforce Offline
New Member
 
Posts: 21
Join Date: Aug 2007
Location: South Lake Tahoe, CA
24-08-2007, 12:11 AM

No errors written to the error log but it still flashes a dos window on the server. I will need to run some tests to see if it runs a task. I had to install wget 1.10.2. I think I use localhost with the --no-check-certificate option. Thanks again!
   
Reply With Quote
  (#6) Old
richm Offline
Member
 
richm's Avatar
 
Posts: 387
Join Date: Jan 2007
Location: Orange County, CA
24-08-2007, 01:30 AM

Can't seem to pull a version out the wget copy i have but it's 325k (332,800 bytes)

Running with SSL here also.

Rich


--
Features I need asap:
1) Ticket search in the client portal!
2) Column display in client portal showing clients email address or name
3) Downloads by client
(i.e. - each client has their own download area and can't see/touch downloads for any other client.) This would be on top of a "public" download area.
4) Integrated KB image uploads
The ability for staff to upload images with a KB articles.
Cheers!
   
Reply With Quote
  (#7) Old
blaforce Offline
New Member
 
Posts: 21
Join Date: Aug 2007
Location: South Lake Tahoe, CA
24-08-2007, 06:49 PM

Looks like it's working now. I had to setup a www DNS entry and add the site to local internet sites in IE (for testing). Log says it ran ok but has a warning "unable to get issuer certificate." This may be causing the quick dos pop window. Don't know why I get the warning because I now use the proper website url in the command line.
   
Reply With Quote
  (#8) Old
blaforce Offline
New Member
 
Posts: 21
Join Date: Aug 2007
Location: South Lake Tahoe, CA
24-08-2007, 06:52 PM

No errors in the wget log but the dos window still pops up and closes.
One other thing. One task shows in the eSupport log without a title??

Last edited by blaforce; 24-08-2007 at 08:40 PM.
   
Reply With Quote
  (#9) Old
blaforce Offline
New Member
 
Posts: 21
Join Date: Aug 2007
Location: South Lake Tahoe, CA
24-08-2007, 10:14 PM

Well, going on vacation so I will try php-win.exe when I get back. It doesn't use a dos window.
   
Reply With Quote
  (#10) Old
blaforce Offline
New Member
 
Posts: 21
Join Date: Aug 2007
Location: South Lake Tahoe, CA
31-08-2007, 11:22 PM

Ok, I finally got it. Scheduled Tasks:
Run: D:\php\php-win.exe -c C:\windows\php.ini -f D:\Inetpub\kayako\cron\index.php
Start in: D:\Inetpub\kayako\cron
Hope this helps someone else.
Brian
   
Reply With Quote
  (#11) Old
craigbrass Offline
Senior Member
 
Posts: 5,753
Join Date: Jun 2005
Location: Cumbria, UK
01-09-2007, 09:45 AM

Thanks for sharing Brian!


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#12) Old
paisano2k Offline
New Member
 
Posts: 5
Join Date: Aug 2007
Location: Dallas, TX
Thumbs up Working in Windows Server 2003 - 09-09-2007, 08:15 PM

I got it to work by downloading wget-1.10.1 and installing it using the windows installation executable
************************************************** ****

after installing wget-1.10.1.exe and setting the following in a scheduled task:

Start in: “C:\Program Files\GnuWin32\bin”

Run: “C:\Program Files\GnuWin32\bin\wget.exe” –q –O nul http://www.yourdomain.com/support/cr....php?_t=parser

Please note where the quotation marks are! If you have them anywhere else, it won't work. There is a space after the last quotation mark in the RUN command line before the -q and also after the word nul, other than that, you should be good to go!



Make sure you have the quotes ("") where they are, or it won't work.




M.

Last edited by paisano2k; 09-09-2007 at 08:18 PM. Reason: wrong url
   
Reply With Quote
  (#13) Old
jeffshead Offline
New Member
 
jeffshead's Avatar
 
Posts: 24
Join Date: Jun 2008
07-06-2008, 06:13 PM

Quote:
Originally Posted by blaforce View Post
Ok, I finally got it. Scheduled Tasks:
Run: D:\php\php-win.exe -c C:\windows\php.ini -f D:\Inetpub\kayako\cron\index.php
Start in: D:\Inetpub\kayako\cron
Hope this helps someone else.
Brian

I tried everything in this post. I could not get any of them to work. The list below includes most of the scenarios I have tried. The only one I can get to work is the first one, but that "pesky" DOS window flashes everytime the task runs:

Code:
 
Works:
Run: C:\wget\wget.exe -q -O nul -a wgetLog "http://www.mysite.com/support/cron/index.php?_t=parser"
Start in: C:\wget
===================
Test 1
C:\wget\wget.exe -O nul -a wgetLog "C:\www\vhosts\_static\mysite.com\support\cron\index.php?_t=parser"
C:\wget
===================
Test2
C:\www\php5\php-win.exe -c C:\php5\php.ini -f C:\www\vhosts\_static\mysite.com\support\cron\index.php
C:\www\vhosts\_static\mysite.com\support\cron
====================
Test3
C:\www\php5\php-win.exe -c C:\php5\php.ini -f "C:\www\vhosts\_static\mysite.com\support\cron\index.php"
C:\www\vhosts\_static\mysite.com\support\cron
====================
Test4
C:\www\php5\php-win.exe -c C:\php5\php.ini -f "C:\www\vhosts\_static\mysite.com\support\cron\index.php?_t=parser"
C:\www\vhosts\_static\mysite.com\support\cron
====================
Test5
C:\www\php5\php-win.exe -c C:\php5\php.ini -f "http://www.mysite.com/support/cron/index.php?_t=parser"
C:\www\vhosts\_static\mysite.com\support\cron
====================
Test6
C:\www\php5\php-win.exe -c C:\php5\php.ini -f "http://www.mysite.com/support/cron/index.php?_t=parser"
C:\www\php5
===================
Test7
C:\www\php5\php-win.exe -c C:\php5\php.ini -f C:\www\vhosts\_static\mysite.com\support\cron\index.php
C:\www\php5
===================
Test8
C:\www\php5\php-win.exe -c C:\php5\php.ini -f C:\www\vhosts\_static\mysite.com\support\cron\index.php?_t=parser
C:\www\php5
===================
Test9
C:\www\php5\php-win.exe -c C:\php5\php.ini -f "C:\www\vhosts\_static\mysite.com\support\cron\index.php?_t=parser"
C:\www\php5
===================
Test10
C:\wget\wget.exe -O nul -a wgetLog --no-check-certificate "https://www.mysite.com/support/cron/index.php?_t=parser"
C:\wget
===================
Test11
C:\wget\wget.exe -O nul -a wgetLog "https://www.mysite.com/support/cron/index.php?_t=parser"
C:\wget
I really wanted to use a local path instead of a URL since everything is on the same box. Or at least use SSL, but I cannot get it to work.

Is it possible to use a local path, SSL or at least get rid of the DOS window issue?


"https://www.mysite.com/support/cron/index.php?_t=parser" does work when accessing via a web browser. Wget does not like it even when using "--no-check-certificate".

Last edited by jeffshead; 08-06-2008 at 08:52 PM.
   
Reply With Quote
Reply

Tags
dos, popup, wget, window

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Piping problem (please help) Indirect E-mail Piping Issues 27 10-07-2006 02:41 AM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


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