Problem with 2 way sms - command response is blank

Problem with 2 way sms - command response is blank SearchSearch
Author Message
Abdul Batin
New member
Username: Abdulbatin

Post Number: 5
Registered: 10-2004
Posted on Monday, November 08, 2004 - 09:50 am:   

Hi Bryce,

Please check cmsdebug file and tell me where i am wrong or where my system is wrong. My head is paining, i am not getting respononse from 2 way. but that code is running ok with command prompt. i.e.

c:\windows\system32\cmd.exe /c "c:\yo.exe alice 971505463762 How are you"

return is :

I am fine

But this return is not comming when i am sending sms using 2 way.

Thanks
application/octet-stream
SMSDEBUG.LOG (11.9 k)
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3730
Registered: 10-2002
Posted on Monday, November 08, 2004 - 09:45 pm:   

Hi Abdul,

How does your "yo" program output text?

In some programming languages, there are concepts of "stdout" (standard output) vs. "stderr" (standard error) ... where "stdout" is redirectable, but "stderr" always goes to the screen.

If you run the command from the command line, redirecting the output to a file, and that works, then it should work with NowSMS.

For example, if you can issue the following command:

c:\yo.exe alice 97194949494 how are you > test.txt

And the file "test.txt" contains the output from your program, then it should work fine with NowSMS.

The trick is that however you output text, it needs to be compatible with being redirected to a file.

-bn

Abdul Batin
New member
Username: Abdulbatin

Post Number: 6
Registered: 10-2004
Posted on Tuesday, November 09, 2004 - 10:29 am:   

Hi Bryce,

Thanks for your response. I am using
printf ("%s\n", (char*)Response); in my code. Response is coming on command, but not comming with nowsms.

Thanks


Abdul Batin
New member
Username: Abdulbatin

Post Number: 7
Registered: 10-2004
Posted on Tuesday, November 09, 2004 - 11:42 am:   

Hi Bryce,

In my nowsms 2-way configuration there is 2 smsprefix
1. "*" used for diff application.
- we are not taking response back here
2. "X" used for this yo.exe application
- we are taking response back here from console

Sometimes it doesn't sense X when we send any msg like "X Hi" but it doesn't sense X and goes into other application.

Thanks
Abdul Batin
New member
Username: Abdulbatin

Post Number: 8
Registered: 10-2004
Posted on Tuesday, November 09, 2004 - 12:48 pm:   

Hi Bryce,

It is very important for us to run this yo.exe file.

We are trying to run this from batch file also but it is not running it is showing as return to sms on mobile --> c:\windows\system32>call c:\yo.exe alice 971638282892 msg hi.

our main aim to run the file and get result. I think it is not running thats why it is showing response return blank.

In 2-way sms i have written c:\windows\system32\cmd.exe /c "c:\yo.exe alice 971505666677 hi how are you"

the same command is executing from command prompt.

Please tell me how i can get reply in our mobile using 2 way sms.

I have tried stderr and stdout also in my prog.

thanks