FrontlineSMS allows you to text message with large groups of people anywhere there is a mobile signal.
Hi Everyone,
I am kindoff stuck at a point in my project.
The problem goes like this...
I receive a message to FLSMS using Huawei E series modem;
In the keywords tab, I have defined a keyword and through "External Commands", I want to run a java program by accepting the sender number and the message contents as arguments.
Hence in the "Execution Details" space, I have given it as ---
java acceptmess${sender_number}${message_content}
(A file is also attached- file 1)
But the problem is, I am able to run the java program, but not able to accept the arguments passed through the command line.
Also, I am able to write a shell script, do the same job and also accept arguments. But I want to know how it is done in java.
I am using Ubuntu.
Please Help.
Thanks in advance.
Tags:

Permalink Reply by Alex Anderson on April 12, 2011 at 5:48am Hi Chandan,
Tricky to tell why it's working for your shell script, but not for your Java program. Would it be possible just to call the Java program from the shell script?
Alex

Permalink Reply by Alex Anderson on April 12, 2011 at 5:52am
Permalink Reply by Chandan B K on April 12, 2011 at 7:06am I tried all sorts of combinations , with space , without space, with and without $ sign, space between { }, etc etc.... Nothing seems to work :-(
Permalink Reply by Chandan B K on April 12, 2011 at 7:05am I am able to call the any program using cmd line. may it be java program or shell script, i am able to call it. But i am not able to process the arguments in java program, but i am able to process the same in shell script.... :-(

Permalink Reply by Alex Anderson on April 12, 2011 at 8:37am
Permalink Reply by Chandan B K on April 12, 2011 at 9:42am
© 2013 Created by kiwanja.net.
Powered by