Running an executable program in 2-way sms

Running an executable program in 2-way sms SearchSearch
Author Message
anjndita
New member
Username: Anindita_nandy

Post Number: 1
Registered: 05-2009
Posted on Sunday, May 03, 2009 - 11: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 - 07: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