Never mind, problem solved.

 

Batch file was writing to recycle.log … in the windows\system directory.

I hard coded the path to the log file and the .vbs file, all is working.

 

-bill

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Sweetman
Sent: Monday, October 03, 2005 11:38 AM
To: salive@woodstone.nu
Subject: RE: [SA-list] execute command on Alert

 

Dirk,

 

I see in the ‘Task Manager’ that ‘cmd.exe’ is running, so it does appear that the .BAT is called.

I cannot see the command window on the server, probably because SA is running as a service (yes, it has interact with the desktop enabled).

I’ll run SA as an interactive application next to see what happens.

The .BAT file only has 5 lines, and none appear to execute.

 

   Date /t >> recycle.log

   Time /t >> recycle.log

   Recycle.vbs

   Echo ---- >> recycle.log

   Pause

 

Thanks,

-bill

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Sweetman
Sent: Monday, October 03, 2005 8:13 AM
To: salive@woodstone.nu
Subject: RE: [SA-list] execute command on Alert

 

The PAUSE never gets called, hence I believe it’s something to do with permissions on the .BAT file, yes?

SA and the .BAT file are on the same machine.

-bill

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Bulinckx
Sent: Friday, September 30, 2005 1:45 PM
To: salive@woodstone.nu
Subject: RE: [SA-list] execute command on Alert

 

put a PAUSE command in the BAT file that way when it's started you'll see the output.

 

Dirk.

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Sweetman
Sent: Friday, September 30, 2005 10:11 PM
To: salive@woodstone.nu
Subject: [SA-list] execute command on Alert

I’m having difficulty executing a command when an alert is raised.

It’s a very simple .BAT file, but it does not appear to be called.

I put in the full path: C:\recycle.bat

I put the following in the file “date /t >> log.txt” and nothing happens.

 

The SA log records the alert, but doesn’t show the .BAT file being called.

 

Am I missing something simple? Is it permissions?

 

Thanks,

-bill

 

Reply via email to