bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] VBScript and Task Manager


From: D'Amato, Paul J.
Subject: Re: [Bug-wget] VBScript and Task Manager
Date: Wed, 16 Apr 2014 14:39:17 +0000

I'm sorry that I offended you. Tim's initial comment offended me and I 
responded in kind. That was wrong of me.



I'm not getting any output from wget when I run it in a script from the task 
manager.



The VBScript works when I launch it from the folder. Wget works and downloads 
the files.

I've modified the vbscript to log the download from wget. The attached file is 
the result after five minutes of waiting.



Here is the modified script commands to log the wget output:





            '//This builds the address for WGET.

wgetURL = "https://"; & _

                        Platform & _

                        "cac.optuminsight.com/ui/" & _

                        Platform & _

                        "/ClientBin/" & _

                        SingleSol





            runWGET = chr(34) & wget & chr(34) & " " & _

                    chr(34) & "--output-file=get_singl.txt" & chr(34) & " " & _

                    chr(34) & secureProtocol & chr(34) & " " & _

                    chr(34) & noCheckCert & chr(34) & " " & _

                    chr(34) & wgetURL & chr(34)



            '//The value of runWGET is: "C:\Program 
Files\GnuWin32\wget\wget.exe" "--output-file=get_singl.txt" 
"--secure-protocol=auto" "--no-check-certificate" 
"https://Previewcac.optuminsight.com/ui/Preview/ClientBin/singlesolution.client.xap";



            objLogFile.WriteLine(Now & ": " & runWGET)

            WshShell.Run runWGET



            Do While not fso.FileExists(currentDirectory & "\" & singleSol)

                  Wscript.Sleep 1000

            Loop



The script is hanging in the "Do While" loop waiting for the file to be created 
from the Wget command.

The file get_singl.txt is not created five minutes after the task is triggered.



The "WshShell.Run runWGET" statement executes when I run the script by clicking 
on it.

But, it seems to not run when the task manager starts it up.



Thank you and please accept my apologies on my short sighted reply.



Paul



-----Original Message-----
From: Darshit Shah [mailto:address@hidden
Sent: Wednesday, April 16, 2014 10:13 AM
To: D'Amato, Paul J.
Cc: Tim Ruehsen; address@hidden
Subject: Re: [Bug-wget] VBScript and Task Manager



Hey Paul,



On Wed, Apr 16, 2014 at 3:31 PM, D'Amato, Paul J. 
<address@hidden<mailto:address@hidden>> wrote:

> Thanks Tim. I started with a general description in case you already had a 
> document I could review. Besides, I didn't know the level of "expertise" I 
> would be getting from an email to a general box.

I'm sorry, but I honestly feel slightly offended at this. You send a mail to 
the bug reporting mailing list for a software project and are doubtful of the 
level of expertise you'll be able to find?

>

>

>

> I've attached the VBScript and I made comments on where the script is hanging.

>

> The file extension is changed from .vbs to .txt.

>

I don't know vbscript and what you're really trying to do. What we're here to 
debug is why Wget doesn't work. And it would be great if you can share the 
debug output of Wget when it doesn't work.



> Here is a screen shot of the Action in my Task:

>

>

>

> [cid:image001.png@01CF5956.5DA5F310]

>

>

>

>

>

> The task is triggered each morning at 3 AM.

>

>

>

> Please let me know if there is more information that you can use.

>

>

>

> Thank you,

>

> Paul

>

>

>

> -----Original Message-----

> From: Tim Ruehsen [mailto:address@hidden

> Sent: Wednesday, April 16, 2014 3:14 AM

> To: address@hidden<mailto:address@hidden>

> Cc: D'Amato, Paul J.

> Subject: Re: [Bug-wget] VBScript and Task Manager

>

>

>

> On Tuesday 15 April 2014 18:37:20 D'Amato, Paul J. wrote:

>

>> I have a vbscript that downloads two files using wget.

>

>> When I run the vbscript the files download and wget performs as expected.

>

>> I need this to happen daily, so I created a Task in the Task Scheduler.

>

>> When the vbscript runs from the task scheduler, the script stops on

>

>> the first wget run command.

>

>>

>

>> Do you have any advice to for WGET to work in this scenario?

>

>

>

> Please try to remember one of the first lectures of "software engineering":

>

> include detailed/exact (logging) data to your bug report ! What system you 
> are on (ok, vbscript --> Windows... Windows what ?), what is the error 
> message and so on...

>

>

>

> Else you just get 'guesses' like this: your PATH for executables might be 
> different when running the script from your Task Scheduler.

>

>

>

> Tim

>

>

>

>

>

> The information in this e-mail is intended only for the person to whom

> it is addressed. If you believe this e-mail was sent to you in error

> and the e-mail contains patient information, please contact the

> Partners Compliance HelpLine at http://www.partners.org/complianceline

> . If the e-mail was sent to you in error but does not contain patient

> information, please contact the sender and properly dispose of the e-mail.

>







--

Thanking You,

Darshit Shah


reply via email to

[Prev in Thread] Current Thread [Next in Thread]