Running an executable program in 2-way sms

Running an executable program in 2-way sms SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through June 24, 2009 » Running an executable program in 2-way sms « Previous || Next »
Author Message
anjndita
New member
Username: Anindita_nandy

Post Number: 1
Registered: 05-2009
Posted on Sunday, May 03, 2009 - 09:59 am:   

there is this c++ program that prints a message on screen, but it's not working with nowsms. the 'command returns response text' option is activated, but it sends error message to user. pls help
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 733
Registered: 08-2008
Posted on Monday, May 04, 2009 - 05:37 pm:   

Hi,

Does the C program write its output to "stdout" so that it supports redirection?

If it doesn't, the NowSMS won't see its response.

You can test by running your command line program on the command line and using ">" to try to redirect output to a file.

For example:

dir > dir.txt

The above routes the output from the "dir" command to a file named "dir.txt".

Can you redirect output from your program to a file in this same way using the ">" symbol?

If you can, then it should work fine from a NowSMS 2-way command.

If you cannot, then the program needs to be modified to output to "stdout" so that it supports i/o redirection.

--
Des
NowSMS Support

Login Login / Register Logout Logout Search Last 30 Days Topics Topics