Hi,

When submitting the PROCESS START request, in addition to the RETURNSTDOUT
option, you could specify the STDOUT <file> option so that the script
output is written to this file....then you could use a command like "tail"
as Sharon suggested.

Thanks,
David


                                                                       
 David Bender          11501 Burnet Rd.   Phone (T/L): 1-512-286-5315  
 STAF/STAX Development Bldg. 903-5B002    (363-5315)                   
                       Austin, TX         ITN: 23635315                
 IBM Software Group,   78758-3400         Email: bda...@us.ibm.com     
 WPLC                                                                  
                                                                       
                                                                       






                                                                       
  From:       Anna Pereira <annazpere...@gmail.com>                    
                                                                       
  To:         Sharon Lucas/Austin/i...@ibmus                            
                                                                       
  Cc:         staf-users@lists.sourceforge.net                         
                                                                       
  Date:       12/16/2010 02:35 PM                                      
                                                                       
  Subject:    Re: [staf-users] IP address of remote machine            
                                                                       






Hi Sharon,

Yes it is submitting a PROCESS START command. Currently the output of the
scripts are displayed after the service completes on the console. I would
like to continue displaying the output on the console while the service is
executing (i.e as each script inside the service executes).  The output is
not written to any file, so "tail -f" would not work. Any suggestions?

Thanks
Anna

On Wed, Dec 15, 2010 at 3:05 PM, Sharon Lucas <luc...@us.ibm.com> wrote:
  How is your STAF Java service executing these scripts?  Is it submitting
  a PROCESS START request to execute each script or is it doing something
  else?
  Where do you want to "display" these results while the scripts are
  executing?

  Perhaps you can use a command like "tail -F <filename>" to monitor the
  result file if your scripts results are written to a file.  If the file
  resides on a remote machine, you could use a STAF PROCESS START request
  to run it.

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




  From:        Anna Pereira <annazpere...@gmail.com>
  To:        Sharon Lucas/Austin/i...@ibmus
  Cc:        staf-us...@lists.sourceforge.net
  Date:        12/15/2010 04:52 PM
  Subject:        Re: [staf-users] IP address of remote machine





  Thanks Sharon, this was exactly what I was looking for!!!
  Another question, my STAF service (written in Java) executes one main
  script which then calls multiple sub-scripts. The results of these
  scripts are visible only after the execution of the service is completed.
  Is it possible to display these results as the scripts complete execution
  rather than at the end of the service?

  Thanks
  Anna


  On Wed, Dec 15, 2010 at 10:41 AM, Sharon Lucas <luc...@us.ibm.com> wrote:

  Yes.  See the "STAF Service Developer's Guide" at
  http://staf.sourceforge.net/current/stafsdg.html for more information on
  the "Accepting Requests Phase".  If you wrote your STAF service in Java,
  see section "5.1.3 Accepting Requests Phase" which shows the fields
  passed in the the acceptRequests method via the
  STAFServiceInterfaceLevel30.RequestInfo argument.  This object includes a
  physicalInterfaceID field which is a String that contains the physical
  interface identifier (the IP address) for the machine from which the
  service request originated.

  Or, if you wrote your STAF service in C++, see section "6.1.4 Accepting
  Requests Phase".
  Or, if you wrote your STAF service in Perl, see section "7.1.3 Accepting
  RequestsPhase",

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




  From:        Anna Pereira <annazpere...@gmail.com>
  To:        staf-us...@lists.sourceforge.net
  Date:        12/15/2010 12:25 PM
  Subject:        [staf-users] IP address of remote machine




  Hi,

  I have written a STAF service that resides on the test server. If a
  remote system uses this STAF service, would it be possible to find out
  the IP address of the system using this service?

  Thanks
  Anna
  ------------------------------------------------------------------------------


  ------------------------------------------------------------------------------

  Lotusphere 2011
  Register now for Lotusphere 2011 and learn how
  to connect the dots, take your collaborative environment
  to the next level, and enter the era of Social Business.
  http://p.sf.net/sfu/lotusphere-d2d
  _______________________________________________
  staf-users mailing list

  staf-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------

Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to