First, I would suggest that you return stdout and stderr and wait for the 
process to complete to see if you are getting any errors.  For example:

STAF local PROCESS START SHELL COMMAND "curl -X GET -u 'user:cmdipass' -v 
-H 'x-cdmi-specification-version: 1.0.1' -H 'content-type: 
application/cdmi-capability' -H 'accept:application/cdmi-capability' 
http://localhost:2364/cdmi_capabilities"; RETURNSTDOUT STDERRTOSDTOUT WAIT

If you are running this STAF command on a Windows system, then you may 
also want to specify the SAMECONSOLE option.  For example:

STAF local PROCESS START SHELL COMMAND "curl -X GET -u 'user:cmdipass' -v 
-H 'x-cdmi-specification-version: 1.0.1' -H 'content-type: 
application/cdmi-capability' -H 'accept:application/cdmi-capability' 
http://localhost:2364/cdmi_capabilities"; RETURNSTDOUT STDERRTOSDTOUT WAIT 
SAMECONSOLE

If it still isn't working, post the RC and result that you are getting 
from the PROCESS START request.

Section "8.13 Process service" in the STAF User's Guide at 
http://staf.sourceforge.net/current/STAFUG.htm#HDRPROCSRV has more 
information on using the STAF PROCESS service.

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




From:   Ashokkumar Naidu <ashokkuma...@globaledgsoft.com>
To:     staf-users@lists.sourceforge.net, 
Date:   05/22/2013 04:50 PM
Subject:        [staf-users] Reg:Running_Curl_Command_Under_STAF



Hi  sharon Lucas,

              I am working with cdmi(Cloud Data Management Interface) 
server for that  i am using curl as client.
I want to run my client under staf environment to test load balancing etc. 
I have used following command, and 
I am not getting the response from server. If you execute the same at 
command line it is giving response.so 
please help me  to run curl command under staf environment. 

staf local process start command curl parms "-X GET -u 'user:cmdipass' -v 
-H 'x-cdmi-specification-version: 1.0.1' -H 'content-type: 
application/cdmi-capability' -H  'accept:application/cdmi-capability' 
http://localhost:2364/cdmi_capabilities";

Actual Curl Request:

curl -X GET -u 'user:cdmipass' -v -H 'x-cdmi-specification-version: 1.0.1' 
-H 'content-type: application/cdmi-capability' -H 
'accept:application/cdmi-capability' 
http://localhost:2364/cdmi_capabilities




Thanks and regards,
N.Asok Kumar.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring 
service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to