Since you are not specifying the WAIT option on your PROCESS START 
request, the result is the STAF handle of the process started.
You need to see if the .bat file writes any errors to STDERR (you are only 
logging STDOUT).  Try running the following command which will wait for 
the command to complete before returning and will return the command's 
stdout/stderr in the resulte:

STAF RT-003 PROCESS START SHELL COMMAND "C:\Scripts\joindomain.bat" STDOUT 
C:\Staflogs\log2.out" STDERRTOSTDOUT RETURNSTDOUT WAIT

Also, did you try running the joindomain.bat file without STAF on machine 
RT-003 to verify that it is working?

When you start STAFProc as a service (following the instructions in the 
STAF Installation Guide at 
http://staf.sourceforge.net/current/STAFInstall.pdf), there won't be a 
command prompt window that shows STAFProc is running. 

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   Radhika Tellakula <rtell...@yahoo.com>
To:     Sharon Lucas/Austin/IBM@IBMUS
Cc:     "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net>
Date:   06/21/2011 01:10 PM
Subject:        Re: [staf-users] STAF Installation on Windows 7 32 bit




Hi Sharon,
 
I have 2 clients: RT-001(XP) and RT-003(Win 7)
I am running a batch file that is in RT-003 (batch file starts a script to 
join the domain) from the remote machine RT-001.
 
The STAF service request that I initiate from RT-001 is 
 
C:\STAF\bin\STAF RT-003 PROCESS START COMMAND "C:\Scripts\joindomain.bat" 
STDOUT C:\Staflogs\log2.out"
 
When I run this command, it simply gives me a Response code. But on the 
remote machine, it does not start the batch file.
C:\Staflogs\log2.out also does not have any log files. Entire directory 
Staflogs is empty.
 
I have noticed that when STAF is started on RT-003, it does not start the 
command window with the STAF service showing as running. Not sure if this 
could be the reason. But services lists STAF as started.
 
Thanks,
Radhika
 
 
 
 
--- On Tue, 6/21/11, Sharon Lucas <luc...@us.ibm.com> wrote:

From: Sharon Lucas <luc...@us.ibm.com>
Subject: Re: [staf-users] STAF Installation on Windows 7 32 bit
To: "Radhika Tellakula" <rtell...@yahoo.com>
Cc: "staf-users@lists.sourceforge.net" <staf-users@lists.sourceforge.net>
Date: Tuesday, June 21, 2011, 10:25 AM

You said that "running a batch file from a remote machine will not work". 
Please provide the STAF service request that you are running and the RC 
and STAFResult from it.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:        Radhika Tellakula <rtell...@yahoo.com> 
To:        Sharon Lucas/Austin/IBM@IBMUS, Sai Ram Purandhar-B22305 
<b22...@freescale.com> 
Cc:        "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net> 
Date:        06/21/2011 12:14 PM 
Subject:        Re: [staf-users] STAF Installation on Windows 7 32 bit 




Thank You for the information. 
The trust level on the client machine was set to 5. 
 
# Enable TCP/IP Connections
interface tcp library STAFTCP 
# Set default local trust
trust default level 5
# Default Service loader service
serviceloader library STAFDSLS


--- On Mon, 6/20/11, Sai Ram Purandhar-B22305 <b22...@freescale.com> 
wrote: 

From: Sai Ram Purandhar-B22305 <b22...@freescale.com>
Subject: RE: [staf-users] STAF Installation on Windows 7 32 bit
To: "Radhika Tellakula" <rtell...@yahoo.com>, "Sharon Lucas" 
<luc...@us.ibm.com>
Cc: "staf-users@lists.sourceforge.net" <staf-users@lists.sourceforge.net>
Date: Monday, June 20, 2011, 11:19 PM
If the batch you are running from remote machine is able to work when you 
run the same from local machine then 
I guess the issue could be with trust level, please refer to following 
link 
  
http://staf.sourceforge.net/current/STAFUG.htm#HDRTRUSTCFG 
  
try to give trust level 5, restart STAF and try again. May be this could 
solve your problem 
  
Thanks, 
Sairam 
  
From: Radhika Tellakula [mailto:rtell...@yahoo.com] 
Sent: Tuesday, June 21, 2011 7:47 AM
To: Sharon Lucas
Cc: staf-users@lists.sourceforge.net
Subject: Re: [staf-users] STAF Installation on Windows 7 32 bit 
 


Thanks so much for the information that you have provided. I was able to 
install STAF on Windows 7 machine. However I am encountering another 
issue. Appreciate if you can help me out on this. 
 
After install STAF on Windows 7, I do not see the cmd window which starts 
the STAF process and is listening to the requests. 
Staf service is running and is listed in the services. staf local ping 
ping works fine as well both from the local machine and from the remote 
machine. 
But running a batch file from a remote machine will not work. Is there any 
configuration that I am missing? 
 
Thanks, 
Radhika 
 

--- On Tue, 6/7/11, Sharon Lucas <luc...@us.ibm.com> wrote: 

From: Sharon Lucas <luc...@us.ibm.com>
Subject: Re: [staf-users] STAF Installation on Windows 7 32 bit
To: "Radhika Tellakula" <rtell...@yahoo.com>
Cc: staf-users@lists.sourceforge.net
Date: Tuesday, June 7, 2011, 2:24 PM 
We've haven't had any problems installing STAF on Windows 7 32-bit.  To 
run a STAF installer without a bundled JVM (e.g. using 
STAF345-setup-win32-NoJVM.exe), you must already have a JVM on the system 
and it must be accessible via the PATH.  If you run "java -version" from 
where you are trying to run the STAF installer, does it find a JVM 1.4.x 
or later?  What is the output from "java -version"? 

You can add LAX_VM "<full-path-to-java-exe>" as parameters to the STAF 
installer to force the installer to run against a specific Java executable 
that you have installed on your machine.  Does that work?  For example: 

STAF345-setup-win32-NoJVM.exe LAX_VM "C:\Program 
Files\Java\jre6\bin\java.exe" 

Note that you should be able to run using the STAF installer that includes 
a bundled JVM (e.g. using STAF345-setup-win32.exe) without this issue as 
it provides and uses a supported JVM.  What error are you getting when you 
use the STAF installer that includes a bundled JVM? 

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:        Radhika Tellakula <rtell...@yahoo.com> 
To:        staf-users@lists.sourceforge.net 
Date:        06/07/2011 03:55 PM 
Subject:        [staf-users]  STAF Installation on Windows 7 32 bit 






Hello, 
 
I am new to STAF environment. Appreciate if someone could answer my 
question. 
I am trying to install STAF on Windows 7 32bit. (supported platform). 
 
The installer that I have is from 
http://staf.sourceforge.net/getcurrent.php 
Tried both with No JVM and JVM installers. version is 3.4.5 
 
For No JVM, this is the error I see: 
c:\Installers>STAF345-setup-win32-NoJVM.exe
LaunchAnywhere Error: Could not find a valid Java virtual machine to load. 

You may need to reinstall a supported Java virtual machine. 
 
Installer bundled with JVM does not install at all. 
 
Previous installation with a 3.3.0 version of STAF with a windows msi 
installer also would not install. 
 
I have searched user lists and forums but could not find relavent 
information. Appreciate your input. 
 
Thanks, 
RT

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
 

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to