If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Applications & Tools > Windows Batch Script

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-23-03, 12:40
frbdev frbdev is offline
Registered User
 
Join Date: Dec 2003
Posts: 6
Question Windows Batch Script

I am having problems with a batch file. The batch script is used to invoke a Java Program.

The batch file I am using is invoke by the NT Scheduler.
When ever the NT Scheduler invokes it, the Java program starts as expected. However, when ever a server operator logs on to the server and logs off, the java process stops running.

Is there a way to invoke my program through the batch file in a mode that will not let the operating system shut it down when ever someone logs off?

[Command: javaw JavaProcess > 20031218.log &]

Thanks!
Reply With Quote
  #2 (permalink)  
Old 12-24-03, 21:25
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Are you using .bat or .cmd file extension for your batch file ? Is this windows 2000 or windows nt ?
Reply With Quote
  #3 (permalink)  
Old 12-25-03, 21:02
frbdev frbdev is offline
Registered User
 
Join Date: Dec 2003
Posts: 6
>>Are you using .bat or .cmd file extension for your batch file ?
I have tried with both a .bat and a .cmd file.

>> Is this windows 2000 or windows nt ?
It's a Windows NT system
Reply With Quote
  #4 (permalink)  
Old 12-26-03, 00:02
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Under what userid is this task running as - and what userid is the sysadmin using when logging in/out ?
Reply With Quote
  #5 (permalink)  
Old 12-26-03, 12:16
frbdev frbdev is offline
Registered User
 
Join Date: Dec 2003
Posts: 6
Question

>>Under what userid is this task running as
I believe it is system...

>>what userid is the sysadmin using when logging in/out ?
I'm not sure, how can I find out?
Reply With Quote
Reply

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On