RE: Newbie needs to start wget in background

2004-11-17 Thread Mike Andersen
Title: Message









Hi again, and thank you very much for your
help with my little problem. I have succeeded in making wget run in the
background using WinCron. nnCron actually looked pretty sweet, but WinCron was
free, and I work for cheapskates ;) 



I installed WinCron normally, and then as
a service (per their docs), and wrote a job that called wget from the command
line at regular intervals to retrieve updates to our files. WinCron jobs can be
started with service start/restart, and they can be passed a switch to suppresses
the console window when spawning a new process. Everything runs in the
background. No console window ever appears. Problem solved.



Thanks again,



Mike



-Original Message-
From: Mathias Wittwer
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 10, 2004
2:38 PM
To: 'Herold Heiko'; 'Mike
Andersen'; [EMAIL PROTECTED]
Subject: RE: Newbie needs to start
wget in background





www.nncron.ru gives you the possiblity to run
any program as a service. that will help solving your issue! US 29.95 for
license























-Original
Message-
From: Herold Heiko
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 10 November 2004
5:40 a.m.
To: 'Mike Andersen';
[EMAIL PROTECTED]
Subject: RE: Newbie needs to start
wget in background







This is not a wget
problem.





Your task scheduler runs
wget in foreground, over any console application (the movie) you are running
currently.





THEN wget immedeatly
correctly puts itself in background, the window closes and your previous
topmost application (the movie) is topmost again (although possibly without
keyboard/mouse input focus!).





You need to investigate
how to run wget in a different way. With the old scheduler (windows NT 4) you
could configure the service accordingly, I don't know the impact of that on the
IE5.5/W2K/XP Task Scheduler (which replaced the previous scheduler).











Heiko






--
-- PREVINET S.p.A. www.previnet.it
-- Heiko Herold [EMAIL PROTECTED] [EMAIL PROTECTED]
-- +39-041-5907073 ph
-- +39-041-5907472 fax 





-Original
Message-
From: Mike Andersen
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 10, 2004
12:19 AM
To: [EMAIL PROTECTED]
Subject: Newbie needs to start
wget in background

Hi,

Can anyone on the list tell me how
to have wget start and run entirely in the background on Windows XP, so no
console window ever opens, not even briefly.



I would like to use wget for
automatically updating files on windows XP client machines, however it needs to
be completely invisible to the user. The client machines will be playing small
movies, which will update from time to time, and wget seems like a natural
solution to have the client machines pull down their own updates. My strategy
so far has been to use Windows Task Scheduler and schedule at regular intervals
a command line call to wget, like this:



C:\WINDOWS\wget.exe -b -q -m -np -nH
-nd -l 1 -Pc:/test http://www.mydomain.com/movies/ 



As you can see, I'm using the -b
(background) and -q (quiet) options, and this *almost* works. A windows console appears for just a fraction
of a second, but it appears on top of the movie and I know my client will not
accept that. I even tried putting the  on the end of the command, but no
dice.



I've also tried using the -o option,
but that didn't help either. 



I've looked through the list and
noticed a thread or two about making wget run completely in the background, but
this appears to involve patching wget, and I'm not sure if it works in windows,
and I doubt I have the know-how to patch the application it correctly. And
that's assuming that a version of wget that runs entirely in the background
does actually exist. 



I'd really appreciate it if anyone
on the list could help me out with this. 



I'm not subscribed to the list, so
please copy me in your responses: [EMAIL PROTECTED].



Many Thanks,



Mike














RE: Newbie needs to start wget in background

2004-11-10 Thread Herold Heiko



This 
is not a wget problem.
Your 
task scheduler runs wget in foreground, over any console application (the movie) 
you are running currently.
THEN 
wget immedeatly correctly puts itself in background, the window closes and your 
previous topmost application (the movie) is topmost again (although possibly 
without keyboard/mouse input focus!).
You 
need to investigate how to run wget in a different way. With the old scheduler 
(windows NT 4) you could configure the service accordingly, I don't know the 
impact of that on the IE5.5/W2K/XP Task Scheduler (which replaced the previous 
scheduler).

Heiko
 PREVINET S.p.A. www.previnet.it-- Heiko 
Herold [EMAIL PROTECTED] [EMAIL PROTECTED]-- +39-041-5907073 
ph-- +39-041-5907472 fax 

  -Original Message-From: Mike Andersen 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, November 10, 2004 
  12:19 AMTo: [EMAIL PROTECTED]Subject: Newbie needs to 
  start wget in background
  
  Hi,
  Can anyone on the list tell me how 
  to have wget start and run entirely in the background on Windows XP, so no 
  console window ever opens, not even briefly.
  
  I would like to use wget for 
  automatically updating files on windows XP client machines, however it needs 
  to be completely invisible to the user. The client machines will be playing 
  small movies, which will update from time to time, and wget seems like a 
  natural solution to have the client machines pull down their own updates. My 
  strategy so far has been to use Windows Task Scheduler and schedule at regular 
  intervals a command line call to wget, like this:
  
  C:\WINDOWS\wget.exe -b -q -m -np 
  -nH -nd -l 1 -Pc:/test http://www.mydomain.com/movies/ 
  
  
  As you can see, I'm using the -b 
  (background) and -q (quiet) options, and this *almost* works. A windows console appears 
  for just a fraction of a second, but it appears on top of the movie and I know 
  my client will not accept that. I even tried putting the  on the end of 
  the command, but no dice.
  
  I've also tried using the -o 
  option, but that didn't help either. 
  
  I've looked through the list and 
  noticed a thread or two about making wget run completely in the background, 
  but this appears to involve patching wget, and I'm not sure if it works in 
  windows, and I doubt I have the know-how to patch the application it 
  correctly. And that's assuming that a version of wget that runs entirely in 
  the background does actually exist. 
  
  I'd really appreciate it if anyone 
  on the list could help me out with this. 
  
  I'm not subscribed to the list, so 
  please copy me in your responses: [EMAIL PROTECTED].
  
  Many Thanks,
  
  Mike
  


RE: Newbie needs to start wget in background

2004-11-10 Thread Mathias Wittwer
Title: Message



www.nncron.ru gives you the possiblity to run 
any program as a service. that will help solving your issue! US 29.95 for 
license



-Original Message-From: Herold 
Heiko [mailto:[EMAIL PROTECTED] Sent: Wednesday, 10 November 
2004 5:40 a.m.To: 'Mike Andersen'; [EMAIL PROTECTED]Subject: 
RE: Newbie needs to start wget in background

  This 
  is not a wget problem.
  Your 
  task scheduler runs wget in foreground, over any console application (the 
  movie) you are running currently.
  THEN 
  wget immedeatly correctly puts itself in background, the window closes and 
  your previous topmost application (the movie) is topmost again (although 
  possibly without keyboard/mouse input focus!).
  You 
  need to investigate how to run wget in a different way. With the old scheduler 
  (windows NT 4) you could configure the service accordingly, I don't know the 
  impact of that on the IE5.5/W2K/XP Task Scheduler (which replaced the previous 
  scheduler).
  
  Heiko
   PREVINET S.p.A. www.previnet.it-- Heiko 
  Herold [EMAIL PROTECTED] [EMAIL PROTECTED]-- +39-041-5907073 
  ph-- +39-041-5907472 fax 
  
-Original Message-From: Mike Andersen 
[mailto:[EMAIL PROTECTED]Sent: Wednesday, November 10, 2004 
12:19 AMTo: [EMAIL PROTECTED]Subject: Newbie needs to 
start wget in background

Hi,
Can anyone on the list tell me 
how to have wget start and run entirely in the background on Windows XP, so 
no console window ever opens, not even briefly.

I would like to use wget for 
automatically updating files on windows XP client machines, however it needs 
to be completely invisible to the user. The client machines will be playing 
small movies, which will update from time to time, and wget seems like a 
natural solution to have the client machines pull down their own updates. My 
strategy so far has been to use Windows Task Scheduler and schedule at 
regular intervals a command line call to wget, like this:

C:\WINDOWS\wget.exe -b -q -m -np 
-nH -nd -l 1 -Pc:/test http://www.mydomain.com/movies/ 


As you can see, I'm using the -b 
(background) and -q (quiet) options, and this *almost* works. A windows console 
appears for just a fraction of a second, but it appears on top of the movie 
and I know my client will not accept that. I even tried putting the  on 
the end of the command, but no dice.

I've also tried using the -o 
option, but that didn't help either. 

I've looked through the list and 
noticed a thread or two about making wget run completely in the background, 
but this appears to involve patching wget, and I'm not sure if it works in 
windows, and I doubt I have the know-how to patch the application it 
correctly. And that's assuming that a version of wget that runs entirely in 
the background does actually exist. 

I'd really appreciate it if 
anyone on the list could help me out with this. 

I'm not subscribed to the list, 
so please copy me in your responses: [EMAIL PROTECTED].

Many Thanks,

Mike



RE: Newbie needs to start wget in background

2004-11-10 Thread Mike Andersen
Title: Message









Mathias, thank you very much for getting
back to me :) wincron was one option we were considering, nncron sounds like it
might be easier to use. I'll check it out and let the list know my results. 



Thanks again to the list for your help and
insight.



Mike



-Original Message-
From: Mathias Wittwer
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 10, 2004
2:38 PM
To: 'Herold Heiko'; 'Mike
Andersen'; [EMAIL PROTECTED]
Subject: RE: Newbie needs to start
wget in background





www.nncron.ru gives you the possiblity to run
any program as a service. that will help solving your issue! US 29.95 for
license























-Original
Message-
From: Herold Heiko
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 10 November 2004
5:40 a.m.
To: 'Mike Andersen';
[EMAIL PROTECTED]
Subject: RE: Newbie needs to start
wget in background







This is not a wget
problem.





Your task scheduler runs
wget in foreground, over any console application (the movie) you are running
currently.





THEN wget immedeatly
correctly puts itself in background, the window closes and your previous
topmost application (the movie) is topmost again (although possibly without
keyboard/mouse input focus!).





You need to investigate
how to run wget in a different way. With the old scheduler (windows NT 4) you
could configure the service accordingly, I don't know the impact of that on the
IE5.5/W2K/XP Task Scheduler (which replaced the previous scheduler).











Heiko






--
-- PREVINET S.p.A. www.previnet.it
-- Heiko Herold [EMAIL PROTECTED] [EMAIL PROTECTED]
-- +39-041-5907073 ph
-- +39-041-5907472 fax 





-Original
Message-
From: Mike Andersen
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 10, 2004
12:19 AM
To: [EMAIL PROTECTED]
Subject: Newbie needs to start
wget in background

Hi,

Can anyone on the list tell me how
to have wget start and run entirely in the background on Windows XP, so no
console window ever opens, not even briefly.



I would like to use wget for
automatically updating files on windows XP client machines, however it needs to
be completely invisible to the user. The client machines will be playing small
movies, which will update from time to time, and wget seems like a natural
solution to have the client machines pull down their own updates. My strategy
so far has been to use Windows Task Scheduler and schedule at regular intervals
a command line call to wget, like this:



C:\WINDOWS\wget.exe -b -q -m -np -nH
-nd -l 1 -Pc:/test http://www.mydomain.com/movies/ 



As you can see, I'm using the -b
(background) and -q (quiet) options, and this *almost* works. A windows console appears for just a fraction
of a second, but it appears on top of the movie and I know my client will not
accept that. I even tried putting the  on the end of the command, but no
dice.



I've also tried using the -o option,
but that didn't help either. 



I've looked through the list and
noticed a thread or two about making wget run completely in the background, but
this appears to involve patching wget, and I'm not sure if it works in windows,
and I doubt I have the know-how to patch the application it correctly. And
that's assuming that a version of wget that runs entirely in the background
does actually exist. 



I'd really appreciate it if anyone
on the list could help me out with this. 



I'm not subscribed to the list, so
please copy me in your responses: [EMAIL PROTECTED].



Many Thanks,



Mike