  | 
			
				SoftTree Technologies 
				Technical Support Forums
			 | 
		 
		  | 
	 
	 
	
	
	
		
	
	
	
		| Author | 
		Message | 
	 
	
		
			robertk 
			 
			
  
			
			
				Joined: 14 Jul 2008 Posts: 10 Country: United States | 
			 
			  
		 | 
		
			
				  ProcessList Windows 2008 | 
				     | 
			 
			
				The ProcessList function in JAL seems to return incomplete results on a Windows 2008 box as compared to Windows XP machine.
 
 
Using the code from the help file, I got the process list from my new Windows 2008 box (shown just below).   There were 4 instances of notepad (as an example) open, but none of them are in the list:
 
 
[... many other processes, stuff deleted for brevity sake ...]
 
1680	
 
1772	
 
1868	
 
1888	
 
2032	
 
2472	
 
2940	
 
3560	
 
4092	
 
3668	
 
1428	
 
2112	
 
1608	
 
2428	VMWARETRAY.EXE
 
2256	VMWAREUSER.EXE
 
2784	CCAPP.EXE
 
3204	CCAPP.EXE
 
2460	24X7.EXE
 
1524	24X7.EXE
 
2772	24X7.EXE
 
3872	24X7.EXE
 
752	24X7.EXE
 
 
From my XP box, I have a bunch of programs open, including 4 instances of notepad, which are listed:
 
 
[... many other processes, stuff deleted for brevity sake ...]
 
 
1172	DAVCDATA.EXE
 
2104	DAVCDATA.EXE
 
3604	CMD.EXE
 
6132	MSTSC.EXE
 
5876	MSTSC.EXE
 
4756	REALSCHED.EXE
 
4228	EDITOR2_UC.EXE
 
2744	MSACCESS.EXE
 
4052	CHROME.EXE
 
5156	CHROME.EXE
 
316	CHROME.EXE
 
3964	24X7.EXE
 
2080	NOTEPAD.EXE
 
4704	NOTEPAD.EXE
 
2536	NOTEPAD.EXE
 
1964	NOTEPAD.EXE
 
 
What I'm trying to do is to see if an instance of program is running.   If so, I want to exit the script and wait for the next itteration.   Is there another elegant way to do this?   Trigger files may not be  100% accurate in reflecting if a program is running (i.e. scheduler is abnormally shuts down, script errors out and the trigger is not deleted, etc.)
 
 
Please advise,
 
Robert
  | 
			 
		  | 
	 
	
		| Tue May 05, 2009 12:46 pm | 
		          | 
	 
	
		  | 
	 
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				Is this is a 64-bit version of Win 2008 by any chance?
  | 
			 
		  | 
	 
	
		| Tue May 05, 2009 1:51 pm | 
		          | 
	 
	
		  | 
	 
	
		
			robertk 
			 
			
  
			
			
				Joined: 14 Jul 2008 Posts: 10 Country: United States | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				Yes, this is a 64-bit version.
  | 
			 
		  | 
	 
	
		| Tue May 05, 2009 3:16 pm | 
		          | 
	 
	
		  | 
	 
	
		
			SysOp 
			Site Admin 
			
  
			
			
				Joined: 26 Nov 2006 Posts: 7992
  | 
			 
			  
		 | 
		
			
				   | 
				     | 
			 
			
				It is a 32-bit process, which simply doesn't see 64-bit processes running
 
 
As a workaround, consider using RunAndWait command spawning TaskList system command with the output redirection to a file then load the resulting file using FileReadAll. To see what I refer too, open command prompt on the server and run "tasklist" command. Please let us know if you need further help with this.
  | 
			 
		  | 
	 
	
		| Tue May 05, 2009 5:35 pm | 
		          | 
	 
	
		  | 
	 
	
		 | 
	 
 
  
	 
	    
	   | 
	
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
  | 
   
 
		 | 
	 
	  |